diff options
author | Robin Appelman <robin@icewind.nl> | 2022-03-03 17:15:02 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-03-04 16:30:16 +0100 |
commit | 917c74e214094e321ff96e1aa067ae60d22e2c58 (patch) | |
tree | 1b0c418966bec4c28785d1191a676310923c1180 /lib/private/Files/Mount | |
parent | 07a7dcb8249c9e25ea7a702e8c932520e2b32de6 (diff) | |
download | nextcloud-server-917c74e214094e321ff96e1aa067ae60d22e2c58.tar.gz nextcloud-server-917c74e214094e321ff96e1aa067ae60d22e2c58.zip |
type fixes
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Mount')
-rw-r--r-- | lib/private/Files/Mount/Manager.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Files/Mount/Manager.php b/lib/private/Files/Mount/Manager.php index 5544b218658..66832690363 100644 --- a/lib/private/Files/Mount/Manager.php +++ b/lib/private/Files/Mount/Manager.php @@ -105,10 +105,8 @@ class Manager implements IMountManager { if (isset($this->mounts[$mountPoint])) { $this->pathCache[$path] = $this->mounts[$mountPoint]; return $this->mounts[$mountPoint]; - } - - if ($current === '') { - throw new NotFoundException("No mount for path " . $path . " existing mounts: " . implode(",", array_keys($this->mounts))); + } elseif ($current === '') { + break; } $current = dirname($current); @@ -116,6 +114,8 @@ class Manager implements IMountManager { $current = ''; } } + + throw new NotFoundException("No mount for path " . $path . " existing mounts: " . implode(",", array_keys($this->mounts))); } /** |