summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-08-20 11:36:12 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-08-20 11:36:12 +0200
commit2fe070ca37c76bc118c0fe360b9c7008bf01e52b (patch)
treefd1e990883a2a47f24eff279827b6b38c3ea7e89
parent3e7e7511ca302ded2ce834d2c1f1eef0e3081cd9 (diff)
parent6907a88d14ecde5b8b193d8a2d720baf02a933c9 (diff)
downloadnextcloud-server-2fe070ca37c76bc118c0fe360b9c7008bf01e52b.tar.gz
nextcloud-server-2fe070ca37c76bc118c0fe360b9c7008bf01e52b.zip
Merge pull request #18447 from owncloud/ext-fix-empty-var
Don't use `empty()` with a return value, PHP 5.4
-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;
}