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:
parent
905474ebd4
commit
4e5eb3b828
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue