diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-01 12:13:49 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-01 12:13:49 +0200 |
commit | 730efe25a4c386b2d2e4c1d1b0d16a71be7b9f28 (patch) | |
tree | 0138e7061b207582fcd163a93493b4afefa951e2 /apps/files/lib | |
parent | efcc2e87ab860c50f7904ac8e98914589a9c097a (diff) | |
download | nextcloud-server-730efe25a4c386b2d2e4c1d1b0d16a71be7b9f28.tar.gz nextcloud-server-730efe25a4c386b2d2e4c1d1b0d16a71be7b9f28.zip |
Make scrutinizer happy
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/activityhelper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/activityhelper.php b/apps/files/lib/activityhelper.php index e05ae6c9831..f9ff722b1c2 100644 --- a/apps/files/lib/activityhelper.php +++ b/apps/files/lib/activityhelper.php @@ -60,7 +60,7 @@ class ActivityHelper { $folders = $items = []; foreach ($favorites as $favorite) { $nodes = $rootFolder->getById($favorite); - if ($nodes) { + if (!empty($nodes)) { /** @var \OCP\Files\Node $node */ $node = array_shift($nodes); $path = substr($node->getPath(), strlen($user . '/files/')); |