mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
- do not log user, if it is not set
This commit is contained in:
parent
a47af6ed37
commit
5572ad52c7
|
@ -280,7 +280,10 @@ function add_log_line($msg="") { /* {{{ */
|
|||
|
||||
if(!$logger) return;
|
||||
|
||||
if($user)
|
||||
$logger->log($user->getLogin()." (".$_SERVER['REMOTE_ADDR'].") ".basename($_SERVER["REQUEST_URI"], ".php").$msg);
|
||||
else
|
||||
$logger->log("-- (".$_SERVER['REMOTE_ADDR'].") ".basename($_SERVER["REQUEST_URI"], ".php").$msg);
|
||||
} /* }}} */
|
||||
|
||||
function _add_log_line($msg="") { /* {{{ */
|
||||
|
|
Loading…
Reference in New Issue
Block a user