diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-06-08 21:23:25 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-06-08 21:38:10 +0200 |
commit | ac365121022f8b03ac47c41f8b3e32f9ba3f90e6 (patch) | |
tree | 6be1b33ec22dad1f74c46f97728362288176206b /apps/user_ldap/lib_ldap.php | |
parent | b9a152450837c90ab3463c0d00ff05219d4b875e (diff) | |
download | nextcloud-server-ac365121022f8b03ac47c41f8b3e32f9ba3f90e6.tar.gz nextcloud-server-ac365121022f8b03ac47c41f8b3e32f9ba3f90e6.zip |
Don't use substr to get first char of string
Diffstat (limited to 'apps/user_ldap/lib_ldap.php')
-rw-r--r-- | apps/user_ldap/lib_ldap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php index 22d464b65a2..befdf267bcd 100644 --- a/apps/user_ldap/lib_ldap.php +++ b/apps/user_ldap/lib_ldap.php @@ -576,7 +576,7 @@ class OC_LDAP { static private function combineFilter($filters, $operator) { $combinedFilter = '('.$operator; foreach($filters as $filter) { - if(substr($filter,0,1) != '(') { + if($filter[0] != '(') { $filter = '('.$filter.')'; } $combinedFilter.=$filter; @@ -692,4 +692,4 @@ class OC_LDAP { return false; } - }
\ No newline at end of file + } |