diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 9ca5c7f8ea..9c7d251ed8 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2011-08-12 Sergio Martin + + * include/functions_tags.php: Fixed false value in foreach + 2011-08-12 Vanessa Gil * operation/agentes/estado_agente.php: Fixed: Agent Search engine fails with blank at the beginning or end. diff --git a/pandora_console/include/functions_tags.php b/pandora_console/include/functions_tags.php index c7346287ed..b28d09419d 100644 --- a/pandora_console/include/functions_tags.php +++ b/pandora_console/include/functions_tags.php @@ -264,6 +264,11 @@ function tags_insert_module_tag ($id_agent_module, $tags){ $errn = 0; $values = array(); + + if($tags == false) { + $tags = array(); + } + foreach ($tags as $tag){ //Protect against default insert if (empty($tag))