1
0
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:
lonalore
2016-12-01 09:39:32 +01:00
parent acf23fae7d
commit 8d838bb9a8

View File

@@ -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);