From 49c8cb9ecdef782ba3919dd7531289d4ee3718ad Mon Sep 17 00:00:00 2001
From: guruevi <noreply@pandorafms.org>
Date: Fri, 21 Nov 2008 19:00:06 +0000
Subject: [PATCH] 2008-11-21  Evi Vanoost  <vanooste@rcbi.rochester.edu>

	* operation/agentes/estado_monitores: Quick fix

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1255 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_console/operation/agentes/estado_monitores.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pandora_console/operation/agentes/estado_monitores.php b/pandora_console/operation/agentes/estado_monitores.php
index 9aa26a2f5b..77969ac476 100644
--- a/pandora_console/operation/agentes/estado_monitores.php
+++ b/pandora_console/operation/agentes/estado_monitores.php
@@ -35,7 +35,9 @@ $sql = sprintf ("SELECT * FROM tagente_estado, tagente_modulo WHERE tagente_esta
 				ORDER BY tagente_modulo.nombre", $id_agente);
 
 $modules = get_db_all_rows_sql ($sql);
-
+if (empty ($modules)) {
+	$modules = array ();
+}
 $table->width = 750;
 $table->cellpadding = 4;
 $table->cellspacing = 4;