Merge pull request #18447 from owncloud/ext-fix-empty-var
Don't use `empty()` with a return value, PHP 5.4
This commit is contained in:
commit
2fe070ca37
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ class BackendService {
|
|||
*/
|
||||
public function getAvailableBackends() {
|
||||
return array_filter($this->getBackends(), function($backend) {
|
||||
return empty($backend->checkDependencies());
|
||||
return !($backend->checkDependencies());
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -256,7 +256,7 @@ class BackendService {
|
|||
*/
|
||||
protected function isAllowedUserBackend(Backend $backend) {
|
||||
if ($this->userMountingAllowed &&
|
||||
!empty(array_intersect($backend->getIdentifierAliases(), $this->userMountingBackends))
|
||||
array_intersect($backend->getIdentifierAliases(), $this->userMountingBackends)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue