diff options
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; } } |