From: Robin Appelman Date: Sun, 2 Jun 2013 19:44:24 +0000 (+0200) Subject: fix clearing mounts when filesystem isn't initialized yet X-Git-Tag: v6.0.0alpha2~695^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b5e817d638afcbdb86f6f8ffd6e92348c2454d3e;p=nextcloud-server.git fix clearing mounts when filesystem isn't initialized yet --- diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index 02cce001b48..7e0bcfd1a27 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -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(); + } } /**