mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix clearing mounts when filesystem isn't initialized yet
This commit is contained in:
parent
e1b5598f00
commit
b5e817d638
1 changed files with 3 additions and 1 deletions
|
|
@ -359,7 +359,9 @@ class Filesystem {
|
|||
* clear all mounts and storage backends
|
||||
*/
|
||||
public static function clearMounts() {
|
||||
self::$mounts->clear();
|
||||
if (self::$mounts) {
|
||||
self::$mounts->clear();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue