diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b072c15082..060b3ac338 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,12 @@ +2010-08-24 Sancho Lerena + + * operation/events/events.php: Fixed bug on event searches + in different languages than english. + + * include/functions_reporting.php: Fixed notice on empty foreach. + + * config_process.php: Trying to supress Deprecated messages. + 2010-08-24 Sergio Martin * extensions/agents_modules.php: Improved the agents/modules diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 224f992518..d0e8781572 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -44,7 +44,15 @@ if ($develop_bypass != 1) { ini_set("error_log", $config["homedir"]."/pandora_console.log"); } else { - error_reporting(E_ALL); + // Develop mode, show all notices and errors on Console (and log it) + if (version_compare(PHP_VERSION, '5.3.0') >= 0) + { + error_reporting(E_ALL & ~E_DEPRECATED); + } + else + { + error_reporting(E_ALL); + } ini_set("display_errors", 1); ini_set("error_log", $config["homedir"]."/pandora_console.log"); } diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index c082e5e7ec..bf51087288 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -390,6 +390,8 @@ function get_agentmodule_sla ($id_agent_module, $period = 0, $min_value = 1, $ma //Add the working times (mon - tue - wed ...) and from time to time $days = array(); //Translate to mysql week days + + if ($daysWeek) foreach ($daysWeek as $key => $value) { if (!$value) { if ($key == 'monday') { diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 185df97536..1052e2f319 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -103,7 +103,7 @@ $status = (int) get_parameter ("status", 0); // -1 all, 0 only red, 1 only green $id_agent = (int) get_parameter ("id_agent", -2); //-1 all, 0 system if($id_agent == -2) { - $text_agent = (string) get_parameter("text_agent", "All"); + $text_agent = (string) get_parameter("text_agent", __("All")); switch ($text_agent) {