2013-09-16 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_inventory.cc: Do not output anything if the module has no data. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8771 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7efed2db66
commit
fb2768066a
|
@ -1,3 +1,8 @@
|
|||
2013-09-16 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* modules/pandora_module_inventory.cc: Do not output anything if the
|
||||
module has no data.
|
||||
|
||||
2013-08-08 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* modules/pandora_module_logevent.h: Updated the EventID mask. The
|
||||
|
|
|
@ -310,12 +310,12 @@ Pandora_Module_Inventory::getXml() {
|
|||
if (!this->has_output || this->inventory_list == NULL) {
|
||||
return "";
|
||||
}
|
||||
|
||||
module_xml = "\t<inventory>\n";
|
||||
|
||||
if (this->inventory_list && this->inventory_list->size () > 1) {
|
||||
list<Pandora_Data *>::iterator iter;
|
||||
|
||||
module_xml = "\t<inventory>\n";
|
||||
|
||||
for (iter = this->inventory_list->begin ();
|
||||
iter != this->inventory_list->end ();
|
||||
iter++) {
|
||||
|
|
Loading…
Reference in New Issue