mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-23 22:05:41 +02:00
Fixed the PHP Warning about the config var.
This commit is contained in:
parent
7f210d82f1
commit
e326c8ff20
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user