Index: branches/5.3.x/core/units/users/users_event_handler.php =================================================================== diff -u -N -r16319 -r16395 --- branches/5.3.x/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 16319) +++ branches/5.3.x/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 16395) @@ -1,6 +1,6 @@ Application->Session->DeleteExpired(); + /** @var SessionStorage $session_storage */ + $session_storage = $this->Application->recallObject('SessionStorage'); + $session_storage->DeleteExpired(); } /** @@ -1140,12 +1142,14 @@ case 'profile': $id = $this->Application->GetVar('user_id'); - if ( !$id ) { - // if none user_id given use current user id - $id = $this->Application->RecallVar('user_id'); + if ( $id ) { + $event->setEventParam(kEvent::FLAG_ID_FROM_REQUEST, true); + + return $id; } - return $id; + // If none user_id given use current user id. + return $this->Application->RecallVar('user_id'); break; case 'forgot':