mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Fix for verifying UEFs with 'FALSE' entered values
This commit is contained in:
@@ -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_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
|
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']}";
|
$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);
|
//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;
|
return TRUE;
|
||||||
|
Reference in New Issue
Block a user