diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-27 12:17:35 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-27 12:17:35 +0200 |
commit | 5bfff6c56e8d4d911c7a5265bb5462c7122ca495 (patch) | |
tree | 18520084c57bf557aff246a88aafd6f77c09815b /lib/files/cache | |
parent | 3437071cf1776288d9239a89b1a6ceb9c5ddbce1 (diff) | |
download | nextcloud-server-5bfff6c56e8d4d911c7a5265bb5462c7122ca495.tar.gz nextcloud-server-5bfff6c56e8d4d911c7a5265bb5462c7122ca495.zip |
use absolute paths when resolving mount points
Diffstat (limited to 'lib/files/cache')
-rw-r--r-- | lib/files/cache/permissions.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/files/cache/permissions.php b/lib/files/cache/permissions.php index e3fa63c464a..dd7233abc70 100644 --- a/lib/files/cache/permissions.php +++ b/lib/files/cache/permissions.php @@ -50,6 +50,9 @@ class Permissions { * @return int[] */ static public function getMultiple($fileIds, $user) { + if (count($fileIds) === 0) { + return array(); + } $params = $fileIds; $params[] = $user; $inPart = implode(', ', array_fill(0, count($fileIds), '?')); |