]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix clearing mounts when filesystem isn't initialized yet
authorRobin Appelman <icewind@owncloud.com>
Sun, 2 Jun 2013 19:44:24 +0000 (21:44 +0200)
committerRobin Appelman <icewind@owncloud.com>
Sun, 2 Jun 2013 19:44:24 +0000 (21:44 +0200)
lib/files/filesystem.php

index 02cce001b481a29109c6d68e826414b003f011da..7e0bcfd1a27b76ff6751713751366abd3d07827e 100644 (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();
+               }
        }
 
        /**