mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Prevent debug message if debug mode is disabled.
This commit is contained in:
@@ -1586,7 +1586,10 @@ class e_user extends e_user_model
|
||||
|
||||
$userdata = $userlogin->getUserData();
|
||||
|
||||
e107::getLog()->add('XUP Debug', (__CLASS__.':'.__METHOD__.'-'.__LINE__), E_LOG_INFORMATIVE, "XUP_DEBUG");
|
||||
if(defset('E107_DEBUG_LEVEL', 0) > 0)
|
||||
{
|
||||
e107::getLog()->add('XUP Debug', (__CLASS__ . ':' . __METHOD__ . '-' . __LINE__), E_LOG_INFORMATIVE, "XUP_DEBUG");
|
||||
}
|
||||
|
||||
$this->setSessionData(true)->setData($userdata);
|
||||
|
||||
|
Reference in New Issue
Block a user