Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-15 17:42:32 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-15 17:42:32 +0300
commitf50f78dd9b57eb1ed631165f1e0d6ae1ee2d47c6 (patch)
tree476e256bdf36eee04531f7837f5a475ef2c0cd6f /apps/user_ldap
parent09d7230921dfbc40c37bd26fd32fdadfb6f8057e (diff)
parent4e5eb3b828805ce82c7c2722522d0e9add70c173 (diff)
Merge pull request #19795 from owncloud/fix-language-level-compat
Remove arbitrary expression in empty
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/configuration.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/configuration.php b/apps/user_ldap/lib/configuration.php
index 6e62f5730b9..4a6263de9aa 100644
--- a/apps/user_ldap/lib/configuration.php
+++ b/apps/user_ldap/lib/configuration.php
@@ -150,8 +150,9 @@ class Configuration {
$setMethod = 'setRawValue';
break;
case 'homeFolderNamingRule':
- if(!empty(trim($val)) && strpos($val, 'attr:') === false) {
- $val = 'attr:'.trim($val);
+ $trimmedVal = trim($val);
+ if(!empty($trimmedVal) && strpos($val, 'attr:') === false) {
+ $val = 'attr:'.$trimmedVal;
}
break;
case 'ldapBase':