From d62aed5fa83a7711f568281e294192015731c133 Mon Sep 17 00:00:00 2001 From: Esteban Sanchez Date: Mon, 20 Oct 2008 09:07:32 +0000 Subject: [PATCH] 2008-10-20 Esteban Sanchez * operation/agentes/estado_grupo.php: Fixed a notice error when the query returns nothing. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1171 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 25 +++++++++++++++++++ .../operation/agentes/estado_grupo.php | 6 +++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 4d7eb18ee9..947e9c0681 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2008-10-20 Esteban Sanchez + + * operation/agentes/estado_grupo.php: Fixed a notice error when the + query returns nothing. + 2008-10-20 Jorge Gonzalez * include/languages/cs.po, include/languages/pt_BR.po, @@ -100,6 +105,26 @@ * include/config_process.php: Added ENTERPRISE_DIR constant. + * extensions/hello.php: Use extension better than plugin which is + already used in other places. + + * godmode/reporting/map_builder.php: Use process_sql() to make SQL + queries. + + * include/functions_db.php: Fixed some functions documentation. Added + order_field to get_db_all_fields_in_table(). Style correction. + + * include/functions_extensions.php: Support to load enterprise + extensions. + + * include/functions_reporting.php: Fixed general_stats() to returns + stats also with a field name. + + * include/javascript/jquery.ui.core.js, + include/javascript/jquery.ui.draggable.js, + include/javascript/jquery.ui.droppable.js: Updated to latest version + of jQuery UI. + 2008-10-14 Esteban Sanchez * operation/reporting/reporting_viewer.php, diff --git a/pandora_console/operation/agentes/estado_grupo.php b/pandora_console/operation/agentes/estado_grupo.php index 682c71b381..e5bed9e629 100644 --- a/pandora_console/operation/agentes/estado_grupo.php +++ b/pandora_console/operation/agentes/estado_grupo.php @@ -79,8 +79,10 @@ foreach ($groups as $id_group => $group_name) { AND tagente_modulo.disabled = 0 AND tagente_estado.utimestamp != 0", $id_group); - $result = get_db_all_rows_sql ($sql); - foreach ($result as $module) { + $modules = get_db_all_rows_sql ($sql); + if ($modules === false) + $modules = array (); + foreach ($modules as $module) { //if ($config["show_unknown"] > 0) { //this needs to be filled out somehow, but this was a serious bug. If that config var is set, it would short circuit both ok++ and bad++ returning empty for everything //}