aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/LDAP.php
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-06-02 15:26:55 +0330
committerFaraz Samapoor <f.samapoor@gmail.com>2023-06-02 15:26:55 +0330
commitb0938b90839503fed01924d4a7874482caf2fc80 (patch)
tree6704ccb6066e29813fd164111e46b896036d65d5 /apps/user_ldap/lib/LDAP.php
parent09c5f997c6d185d8b23b37a996e7a1130a426d75 (diff)
downloadnextcloud-server-b0938b90839503fed01924d4a7874482caf2fc80.tar.gz
nextcloud-server-b0938b90839503fed01924d4a7874482caf2fc80.zip
Refactors "strpos" calls in /apps/user_ldap to improve code readability.
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'apps/user_ldap/lib/LDAP.php')
-rw-r--r--apps/user_ldap/lib/LDAP.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/LDAP.php b/apps/user_ldap/lib/LDAP.php
index 41a6f651f3b..6309a0c8f91 100644
--- a/apps/user_ldap/lib/LDAP.php
+++ b/apps/user_ldap/lib/LDAP.php
@@ -204,7 +204,7 @@ class LDAP implements ILDAPWrapper {
}
$oldHandler = set_error_handler(function ($no, $message, $file, $line) use (&$oldHandler) {
- if (strpos($message, 'Partial search results returned: Sizelimit exceeded') !== false) {
+ if (str_contains($message, 'Partial search results returned: Sizelimit exceeded')) {
return true;
}
$oldHandler($no, $message, $file, $line);