diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-06-02 21:44:24 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-06-02 21:44:24 +0200 |
commit | b5e817d638afcbdb86f6f8ffd6e92348c2454d3e (patch) | |
tree | 0d866b7c4dc16a49f5b404b7ba6ae9377e6cde0a | |
parent | e1b5598f00b45484bf69e414c5a2cc19ebdc9ab0 (diff) | |
download | nextcloud-server-b5e817d638afcbdb86f6f8ffd6e92348c2454d3e.tar.gz nextcloud-server-b5e817d638afcbdb86f6f8ffd6e92348c2454d3e.zip |
fix clearing mounts when filesystem isn't initialized yet
-rw-r--r-- | lib/files/filesystem.php | 4 |
1 files changed, 3 insertions, 1 deletions
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(); + } } /** |