Index: branches/5.2.x/core/kernel/kbase.php =================================================================== diff -u -N -r14596 -r14599 --- branches/5.2.x/core/kernel/kbase.php (.../kbase.php) (revision 14596) +++ branches/5.2.x/core/kernel/kbase.php (.../kbase.php) (revision 14599) @@ -1,6 +1,6 @@ GetFieldOptions($field, $is_virtual); - if (!$field_options) { - return $field_options; + if ( !$field_options ) { + $form_name = $this->getFormName(); + trigger_error('Field "' . $field . '" is not defined' . ($form_name ? ' on "' . $this->getFormName() . '" form' : '') . ' in "' . $this->Prefix . '" unit config', E_USER_WARNING); + + return false; } return array_key_exists($option_name, $field_options) ? $field_options[$option_name] : $default; Index: branches/5.2.x/admin/system_presets/simple/users_u.php =================================================================== diff -u -N -r14585 -r14599 --- branches/5.2.x/admin/system_presets/simple/users_u.php (.../users_u.php) (revision 14585) +++ branches/5.2.x/admin/system_presets/simple/users_u.php (.../users_u.php) (revision 14599) @@ -76,7 +76,7 @@ // virtual fields to hide $virtual_hidden_fields = Array ( - /*'ValidateLogin', 'SubscribeEmail', 'PrimaryGroup', 'RootPassword', 'FullName', 'UserGroup'*/ + /*'SubscribeEmail', 'PrimaryGroup', 'RootPassword', 'FullName', 'UserGroup'*/ ); // fields to make required @@ -88,7 +88,7 @@ // virtual fields to make required $virtual_required_fields = Array ( - /*'ValidateLogin', 'SubscribeEmail', 'PrimaryGroup', 'RootPassword', 'FullName', 'UserGroup'*/ + /*'SubscribeEmail', 'PrimaryGroup', 'RootPassword', 'FullName', 'UserGroup'*/ ); // tabs during editing Index: branches/5.2.x/core/kernel/application.php =================================================================== diff -u -N -r14596 -r14599 --- branches/5.2.x/core/kernel/application.php (.../application.php) (revision 14596) +++ branches/5.2.x/core/kernel/application.php (.../application.php) (revision 14599) @@ -1,6 +1,6 @@ GetVar('expired') == 1 ) { // this parameter is set only from admin - $user =& $this->recallObject('u.current'); + $user =& $this->recallObject('u.login-admin', null, Array ('form_name' => 'login')); /* @var $user UsersItem */ - $user->SetError('ValidateLogin', 'session_expired', 'la_text_sess_expired'); + $user->SetError('UserLogin', 'session_expired', 'la_text_sess_expired'); } if ( ($user_id != USER_GUEST) && defined('DBG_REQUREST_LOG') && DBG_REQUREST_LOG ) {