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:
ramonn 2013-09-16 09:30:02 +00:00
parent 7efed2db66
commit fb2768066a
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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++) {