Add is_null check

This commit is contained in:
Hypolite Petovan 2018-02-04 08:58:29 -05:00
parent 16c6806c5b
commit fd76b15638

View file

@ -743,7 +743,7 @@ function dlogger($msg, $level = 0) {
}
$dlogip = Config::get('system', 'dlogip');
if ($dlogip && $_SERVER['REMOTE_ADDR'] != $dlogip) {
if (!is_null($dlogip) && $_SERVER['REMOTE_ADDR'] != $dlogip) {
return;
}