Skip to content
Snippets Groups Projects
Commit b5e817d6 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix clearing mounts when filesystem isn't initialized yet

parent e1b5598f
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment