mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Fix for verifying UEFs with 'FALSE' entered values
This commit is contained in:
parent
079ef5b63d
commit
9bf84739e6
@ -1974,7 +1974,12 @@ function force_userupdate($currentUser)
|
||||
if (!check_class($row['user_extended_struct_applicable'])) { continue; } // Must be applicable to this user class
|
||||
if (!check_class($row['user_extended_struct_write'])) { continue; } // And user must be able to change it
|
||||
$user_extended_struct_name = "user_{$row['user_extended_struct_name']}";
|
||||
if ((!$currentUser[$user_extended_struct_name]) || (($row['user_extended_struct_type'] == 7) && ($currentUser[$user_extended_struct_name] == '0000-00-00')))
|
||||
if (!isset($currentUser[$user_extended_struct_name]))
|
||||
{
|
||||
//e107::admin_log->e_log_event(4, __FILE__."|".__FUNCTION__."@".__LINE__, 'FORCE', 'Force User update', 'Trigger field: '.$user_extended_struct_name, FALSE, LOG_TO_ROLLING);
|
||||
return TRUE;
|
||||
}
|
||||
if (($row['user_extended_struct_type'] == 7) && ($currentUser[$user_extended_struct_name] == '0000-00-00'))
|
||||
{
|
||||
//e107::admin_log->e_log_event(4, __FILE__."|".__FUNCTION__."@".__LINE__, 'FORCE', 'Force User update', 'Trigger field: '.$user_extended_struct_name, FALSE, LOG_TO_ROLLING);
|
||||
return TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user