fix clearing mounts when filesystem isn't initialized yet

This commit is contained in:
Robin Appelman 2013-06-02 21:44:24 +02:00
parent e1b5598f00
commit b5e817d638
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}
}
/**