summaryrefslogtreecommitdiffstats
path: root/apps/files_external/service
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-08-20 01:03:45 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-08-20 01:03:45 +0100
commit6907a88d14ecde5b8b193d8a2d720baf02a933c9 (patch)
tree4596a54105269b3a7f82102890b162baa65b7f0e /apps/files_external/service
parent08161027c47284102c44b36cb3253702df4c29a8 (diff)
downloadnextcloud-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.php4
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;
}