2010-08-24 Sancho Lerena <slerena@artica.es>

* 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.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3179 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2010-08-24 16:00:35 +00:00
parent a742000824
commit 79f78be3ba
4 changed files with 21 additions and 2 deletions

View File

@ -1,3 +1,12 @@
2010-08-24 Sancho Lerena <slerena@artica.es>
* 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 <sergio.martin@artica.es>
* extensions/agents_modules.php: Improved the agents/modules

View File

@ -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");
}

View File

@ -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') {

View File

@ -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)
{