fix clearing mounts when filesystem isn't initialized yet
This commit is contained in:
parent
e1b5598f00
commit
b5e817d638
|
@ -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 New Issue