From 6db3543ec0844f53b0d1a68e7e3a3fea74aa41f7 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 8 May 2020 13:21:28 +0200 Subject: [PATCH] LSlog_handler : fix undefined index errors on CLI context --- src/includes/class/class.LSlog_handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/includes/class/class.LSlog_handler.php b/src/includes/class/class.LSlog_handler.php index 97452bb2..dffec0af 100644 --- a/src/includes/class/class.LSlog_handler.php +++ b/src/includes/class/class.LSlog_handler.php @@ -158,8 +158,8 @@ class LSlog_handler { 'logger' => ($logger?$logger:'default'), 'datetime' => date('Y/m/d H:i:s'), 'clibinpath' => (isset($argv)?$argv[0]:'unknown bin path'), - 'requesturi' => (isset($_SERVER)?$_SERVER['REQUEST_URI']:'unknown request URI'), - 'remoteaddr' => (isset($_SERVER)?$_SERVER['REMOTE_ADDR']:'unknown remote address'), + 'requesturi' => (isset($_SERVER['REQUEST_URI'])?$_SERVER['REQUEST_URI']:'unknown request URI'), + 'remoteaddr' => (isset($_SERVER['REMOTE_ADDR'])?$_SERVER['REMOTE_ADDR']:'unknown remote address'), 'ldapservername' => self :: getLdapServerName(), 'authuser' => self :: getAuthenticatedUserDN(), )