diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2515036698..abb598bb96 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-08-09 Miguel de Dios + + * godmode/snmpconsole/snmp_alert.php: fixed the PHP warnings for + empty objects. + 2013-08-09 Miguel de Dios * godmode/snmpconsole/snmp_alert.php: fixed the link to edit in the diff --git a/pandora_console/godmode/snmpconsole/snmp_alert.php b/pandora_console/godmode/snmpconsole/snmp_alert.php index 5f7fe3fe6e..50d8a0d002 100644 --- a/pandora_console/godmode/snmpconsole/snmp_alert.php +++ b/pandora_console/godmode/snmpconsole/snmp_alert.php @@ -560,7 +560,7 @@ else { $filter_param = (bool)get_parameter('filter', false); $offset = (int) get_parameter ('offset'); - $table_filter = null; + $table_filter = new stdClass(); $table_filter->width = "98%"; $table_filter->data = array(); $table_filter->data[0][0] = __('Free search') . ui_print_help_tip( @@ -655,6 +655,7 @@ else { FROM talert_snmp WHERE' . $where_sql); } + $table = new stdClass(); $table->data = array (); $table->head = array (); $table->size = array ();