From 6907a88d14ecde5b8b193d8a2d720baf02a933c9 Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Thu, 20 Aug 2015 01:03:45 +0100 Subject: [PATCH] Don't use `empty()` with a return value, PHP 5.4 --- apps/files_external/service/backendservice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_external/service/backendservice.php b/apps/files_external/service/backendservice.php index bee08ecbd1..382834b4c1 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; }