diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-01-28 00:59:43 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-01-28 00:59:43 +0100 |
commit | 577e3b11d7b486d09334f39215814638704e84b9 (patch) | |
tree | 8b7833e3a731c04541ce35615b9aabc9b0795359 /lib | |
parent | 4cae1416733019fe4c7465f3e167a456fb790502 (diff) | |
download | nextcloud-server-577e3b11d7b486d09334f39215814638704e84b9.tar.gz nextcloud-server-577e3b11d7b486d09334f39215814638704e84b9.zip |
Filesystem: return all matching mounts in Mount::findById
Diffstat (limited to 'lib')
-rw-r--r-- | lib/files/mount.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/files/mount.php b/lib/files/mount.php index e28b6471fe3..74ee483b1be 100644 --- a/lib/files/mount.php +++ b/lib/files/mount.php @@ -174,14 +174,15 @@ class Mount { /** * @param string $id - * @return \OC\Files\Storage\Storage + * @return \OC\Files\Storage\Storage[] */ public static function findById($id) { + $result = array(); foreach (self::$mounts as $mount) { if ($mount->getStorageId() === $id) { - return $mount; + $result[] = $mount; } } - return null; + return $result; } } |