Update functions.php

just to prevent passing null to parameter
This commit is contained in:
Hani Rouatbi
2023-01-29 10:16:21 +01:00
parent 791c09fa5a
commit 5a36380dda

View File

@@ -25,7 +25,7 @@ function kleeja_detecting_bots()
global $SQL, $dbprefix, $config;
// get information ..
$agent = $SQL->escape($_SERVER['HTTP_USER_AGENT']);
$agent = $SQL->escape($_SERVER['HTTP_USER_AGENT'] ?? '');
$time = time();
//for stats