From 97ef472bee2123d0d98d06e9f0d42c405eab9ac9 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Thu, 4 Nov 2010 18:31:37 +0000 Subject: [PATCH] 2010-11-04 Ramon Novoa * include/functions_ui.php: Check that the alert has a 'standby' column (compound alerts don't have it). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3530 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_ui.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 530ed60be6..e252c1a3b2 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-11-04 Ramon Novoa + + * include/functions_ui.php: Check that the alert has a 'standby' column + (compound alerts don't have it). + 2010-11-04 Miguel de Dios * godmode/db/db_purge.php: fixed old value "1" for "All" groups. diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 6e74d2f142..a46b8f6702 100644 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -447,7 +447,7 @@ function format_alert_row ($alert, $compound = false, $agent = true, $url = '') // Standby $data[$index['standby']] = ''; - if ($alert["standby"] == 1) { + if (isset ($alert["standby"]) && $alert["standby"] == 1) { $data[$index['standby']] = print_image ('images/bell_pause.png', true, array('title' => __('Standby on'))); }