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';
|
$setMethod = 'setRawValue';
|
||||||
break;
|
break;
|
||||||
case 'homeFolderNamingRule':
|
case 'homeFolderNamingRule':
|
||||||
if(!empty(trim($val)) && strpos($val, 'attr:') === false) {
|
$trimmedVal = trim($val);
|
||||||
$val = 'attr:'.trim($val);
|
if(!empty($trimmedVal) && strpos($val, 'attr:') === false) {
|
||||||
|
$val = 'attr:'.$trimmedVal;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'ldapBase':
|
case 'ldapBase':
|
||||||
|
|
Loading…
Reference in New Issue