diff options
author | Roger Szabo <roger.szabo@web.de> | 2017-06-30 18:36:33 +0800 |
---|---|---|
committer | Roger Szabo <roger.szabo@web.de> | 2017-06-30 18:36:33 +0800 |
commit | 51ecc7ce114f7155942bdbf1ff336ca5a2f80ee7 (patch) | |
tree | 9ebbeb2255018242f60b22f107c732693406e977 /apps | |
parent | bf9412df63d150697e985795f03c24736ea4dc81 (diff) | |
download | nextcloud-server-51ecc7ce114f7155942bdbf1ff336ca5a2f80ee7.tar.gz nextcloud-server-51ecc7ce114f7155942bdbf1ff336ca5a2f80ee7.zip |
suppress superflous php error on rejected password change
Signed-off-by: Roger Szabo <roger.szabo@web.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/Access.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index f342785ee03..69e1f3c52f4 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -346,7 +346,7 @@ class Access extends LDAPUtility implements IUserTools { return false; } try { - return $this->invokeLDAPMethod('modReplace', $cr, $userDN, $password); + return @$this->invokeLDAPMethod('modReplace', $cr, $userDN, $password); } catch(ConstraintViolationException $e) { throw new HintException('Password change rejected.', \OC::$server->getL10N('user_ldap')->t('Password change rejected. Hint: ').$e->getMessage(), $e->getCode()); } |