diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-20 01:03:45 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-20 01:03:45 +0100 |
commit | 6907a88d14ecde5b8b193d8a2d720baf02a933c9 (patch) | |
tree | 4596a54105269b3a7f82102890b162baa65b7f0e /apps/files_external/service | |
parent | 08161027c47284102c44b36cb3253702df4c29a8 (diff) | |
download | nextcloud-server-6907a88d14ecde5b8b193d8a2d720baf02a933c9.tar.gz nextcloud-server-6907a88d14ecde5b8b193d8a2d720baf02a933c9.zip |
Don't use `empty()` with a return value, PHP 5.4
Diffstat (limited to 'apps/files_external/service')
-rw-r--r-- | apps/files_external/service/backendservice.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/service/backendservice.php b/apps/files_external/service/backendservice.php index bee08ecbd15..382834b4c19 100644 --- a/apps/files_external/service/backendservice.php +++ b/apps/files_external/service/backendservice.php @@ -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; } |