Remove arbitrary expression in empty

Those are only allowed in PHP 5.5, thus making our code incompatible with PHP 5.4

Fixes https://github.com/owncloud/core/issues/19793
This commit is contained in:
Lukas Reschke 2015-10-14 22:35:46 +02:00
parent 905474ebd4
commit 4e5eb3b828
1 changed files with 3 additions and 2 deletions

View File

@ -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':