mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Issue #771 - now decodes user-log preference correctly.
This commit is contained in:
@@ -1107,7 +1107,7 @@ if(! defined("USER_WIDTH"))
|
||||
// CONFIGURATION OPTIONS MENU
|
||||
//====================================================================
|
||||
|
||||
|
||||
/*
|
||||
if($action == "config")
|
||||
{
|
||||
// User Audit log options (for info)
|
||||
@@ -1246,6 +1246,7 @@ if($action == "config")
|
||||
|
||||
$ns->tablerender(ADLAN_155.SEP.LAN_OPTIONS, $mes->render().$text);
|
||||
}
|
||||
*/
|
||||
|
||||
//====================================================================
|
||||
// LOG VIEW MENU
|
||||
|
@@ -243,7 +243,7 @@ class userlogin
|
||||
// Problem is that USERCLASS_LIST just contains 'guest' and 'everyone' at this point
|
||||
$class_list = $this->userMethods->addCommonClasses($this->userData, TRUE);
|
||||
|
||||
$user_logging_opts = array_flip(explode(',',varset($pref['user_audit_opts'],'')));
|
||||
$user_logging_opts = e107::getConfig()->get('user_audit_opts');
|
||||
if (isset($user_logging_opts[USER_AUDIT_LOGIN]) && in_array(varset($pref['user_audit_class'],''),$class_list))
|
||||
{ // Need to note in user audit trail
|
||||
$this->e107->admin_log->user_audit(USER_AUDIT_LOGIN,'', $user_id,$user_name);
|
||||
|
Reference in New Issue
Block a user