From bd8f774591c722a4086993d2e4a5d4f128c382a7 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 21 Jul 2011 13:51:36 +0000 Subject: [PATCH] 2011-07-21 Sergio Martin * operation/incidents/incident.list.php: fixed table displayed instead of a message for bug 3372155 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4616 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/operation/incidents/incident.list.php | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index e46a64e8b2..05d7c5f292 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-07-21 Sergio Martin + + * operation/incidents/incident.list.php: fixed table + displayed instead of a message for bug 3372155 + 2011-07-21 Sergio Martin * include/functions_users.php diff --git a/pandora_console/operation/incidents/incident.list.php b/pandora_console/operation/incidents/incident.list.php index 30e86cc5fa..31253bab0c 100644 --- a/pandora_console/operation/incidents/incident.list.php +++ b/pandora_console/operation/incidents/incident.list.php @@ -135,5 +135,10 @@ foreach ($incidents as $row) { array_push ($table->data, $data); } -html_print_table ($table); +if(isset($data)) { + html_print_table ($table); +} +else { + echo "
".__('There are no defined incidents')."
"; +} ?>