Loading lib/users.php +7 −11 Original line number Original line Diff line number Diff line Loading @@ -1145,18 +1145,14 @@ function set_last_action($user_guid) { /** /** * Sets the last logon time of the given user to right now. * Sets the last logon time of the given user to right now. * * * @param int $user_guid The user GUID * @param User $User * * * @return void * @return void */ */ function set_last_login($user_guid) { function set_last_login($user) { $user_guid = (int) $user_guid; global $CONFIG; $time = time(); $time = time(); $user = new ElggUser($user_guid); $user->last_login = $time; $user->last_login = $time; $user->ip = $_SERVER['REMOTE_ADDR']; $user->ip = $_SERVER['REMOTE_ADDR']; $user->save(); $user->save(); //execute_delayed_write_query($query); } } No newline at end of file Loading
lib/users.php +7 −11 Original line number Original line Diff line number Diff line Loading @@ -1145,18 +1145,14 @@ function set_last_action($user_guid) { /** /** * Sets the last logon time of the given user to right now. * Sets the last logon time of the given user to right now. * * * @param int $user_guid The user GUID * @param User $User * * * @return void * @return void */ */ function set_last_login($user_guid) { function set_last_login($user) { $user_guid = (int) $user_guid; global $CONFIG; $time = time(); $time = time(); $user = new ElggUser($user_guid); $user->last_login = $time; $user->last_login = $time; $user->ip = $_SERVER['REMOTE_ADDR']; $user->ip = $_SERVER['REMOTE_ADDR']; $user->save(); $user->save(); //execute_delayed_write_query($query); } } No newline at end of file