From e326c8ff2013765a3c0bf2215eceea66b9eb453a Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 5 Jun 2015 12:46:33 +0200 Subject: [PATCH] Fixed the PHP Warning about the config var. --- pandora_console/include/functions_modules.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index eb0d5e83c2..b96b26d7fd 100644 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -1401,6 +1401,8 @@ function modules_get_count_datas($id_agent_module, $date_init, $date_end) { function modules_get_count_data_with_value($id_agent_module, $date_init, $date_end, $value) { + global $config; + if (!is_numeric($date_init)) { $date_init = strtotime($date_init); }