diff --git a/pandora_console/operation/events/events.build_table.php b/pandora_console/operation/events/events.build_table.php
index 17f99d3c48..5b98f9b9a9 100644
--- a/pandora_console/operation/events/events.build_table.php
+++ b/pandora_console/operation/events/events.build_table.php
@@ -14,6 +14,7 @@
// GNU General Public License for more details.
if(!isset($table->width)) {
+ $table = new stdClass();
$table->width = '100%';
}
@@ -500,7 +501,7 @@ foreach ($result as $event) {
if (!empty($event_user_comments)) {
$last_key = key(array_slice($event_user_comments, -1, 1, true));
$date_format = $config['date_format'];
-
+
foreach ($event_user_comments as $key => $event_user_comment) {
$event_user_comment_str .= sprintf('%s: %s
%s: %s
%s: %s
',
__('Date'), date($date_format, $event_user_comment['utimestamp']),
@@ -591,7 +592,7 @@ foreach ($result as $event) {
array ("title" => __('Validate event')));
$data[$i] .= '';
}
-
+
// Delete event
if ((tags_checks_event_acl($config["id_user"], $event["id_grupo"], "EM", $event['clean_tags'],$childrens_ids) == 1)) {
if($event['estado'] != 2) {
@@ -677,7 +678,7 @@ if (!empty ($table->data)) {
});
}
- id = 'events_filter_form_advanced';
$table_advanced->width = '98%';
$table_advanced->cellspacing = 4;
@@ -543,6 +544,7 @@ $table_advanced->rowclass[] = '';
//- END ADVANCE FILTER -------------------------------------------------
+$table = new stdClass();
$table->id = 'events_filter_form';
$table->width = '100%';
$table->cellspacing = 4;