mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
fix logout hook
This commit is contained in:
parent
979532d3df
commit
feffdd1837
@ -35,7 +35,7 @@ if($current_session !== false)
|
||||
|
||||
if(ACTION === 'logout' && !isset($_REQUEST['account_login'])) {
|
||||
if(isset($account_logged) && $account_logged->isLoaded()) {
|
||||
if($hooks->trigger(HOOK_LOGOUT, array('account' => $account_logged, 'password' => getSession('password')))) {
|
||||
if($hooks->trigger(HOOK_LOGOUT,['account_id' => $account_logged->getId()])) {
|
||||
unsetSession('account');
|
||||
unsetSession('password');
|
||||
unsetSession('remember_me');
|
||||
|
Loading…
x
Reference in New Issue
Block a user