Fixed the PHP Warning about the config var. (manual cherry-pick from e326c8ff20
)
This commit is contained in:
parent
866cdb908e
commit
4a86e40ca2
|
@ -2144,6 +2144,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,
|
function modules_get_count_data_with_value($id_agent_module, $date_init,
|
||||||
$date_end, $value) {
|
$date_end, $value) {
|
||||||
|
|
||||||
|
global $config;
|
||||||
|
|
||||||
if (!is_numeric($date_init)) {
|
if (!is_numeric($date_init)) {
|
||||||
$date_init = strtotime($date_init);
|
$date_init = strtotime($date_init);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue