diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-06-01 00:34:46 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-06-01 00:39:59 +0200 |
commit | 82fd15706eeaf6e3770985cdf1aff86a1996f2e2 (patch) | |
tree | 36b175bc21590b823aeb17f8c56490965c3cd4bf /lib/user.php | |
parent | e430f442b50b43d085dac2f68b1c5ff3dd1236f7 (diff) | |
download | nextcloud-server-82fd15706eeaf6e3770985cdf1aff86a1996f2e2.tar.gz nextcloud-server-82fd15706eeaf6e3770985cdf1aff86a1996f2e2.zip |
fix undefined variables
Diffstat (limited to 'lib/user.php')
-rw-r--r-- | lib/user.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/user.php b/lib/user.php index bdd944ee183..5f8a4cbfce2 100644 --- a/lib/user.php +++ b/lib/user.php @@ -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)); |