fix undefined variables

This commit is contained in:
Robin Appelman 2013-06-01 00:34:46 +02:00
parent e430f442b5
commit 82fd15706e
1 changed files with 2 additions and 2 deletions

View File

@ -56,10 +56,10 @@ class OC_User {
\OC_Hook::emit('OC_User', 'post_deleteUser', array('uid' => $user->getUID()));
});
self::$userSession->listen('\OC\User', 'preSetPassword', function ($user, $password, $recoveryPassword) {
OC_Hook::emit('OC_User', 'pre_setPassword', array('run' => &$run, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword));
OC_Hook::emit('OC_User', 'pre_setPassword', array('run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword));
});
self::$userSession->listen('\OC\User', 'postSetPassword', function ($user, $password, $recoveryPassword) {
OC_Hook::emit('OC_User', 'post_setPassword', array('run' => &$run, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword));
OC_Hook::emit('OC_User', 'post_setPassword', array('run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword));
});
self::$userSession->listen('\OC\User', 'preLogin', function ($uid, $password) {
\OC_Hook::emit('OC_User', 'pre_login', array('run' => true, 'uid' => $uid, 'password' => $password));