]> source.dussan.org Git - nextcloud-server.git/commitdiff
suppress superflous php error on rejected password change
authorRoger Szabo <roger.szabo@web.de>
Fri, 30 Jun 2017 10:36:33 +0000 (18:36 +0800)
committerRoger Szabo <roger.szabo@web.de>
Mon, 10 Jul 2017 07:16:12 +0000 (15:16 +0800)
Signed-off-by: Roger Szabo <roger.szabo@web.de>
apps/user_ldap/lib/Access.php

index f342785ee0361ed1c220c0ee5aeb78295e60b781..69e1f3c52f41cc53c347a3560cfd7da47cacd186 100644 (file)
@@ -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());
                }