From c2ac206379b46c55a951670bafdae289543bc17f Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Mon, 6 Jan 2020 23:23:44 +0100 Subject: [PATCH] Fix in case the storage config is set as file. --- update.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/update.php b/update.php index 7d25c6ac0e..924fac5458 100644 --- a/update.php +++ b/update.php @@ -416,10 +416,12 @@ function update_1330() // set the name of the storage instead of the classpath as config if (!empty($currStorage)) { /** @var Storage\IStorage $currStorage */ - if (!Config::set('storage', 'name', $currStorage::getName()) || - !Config::delete('storage', 'class')) { + if (!Config::set('storage', 'name', $currStorage::getName())) { return Update::FAILED; - }; + } + + // try to delete the class since it isn't needed. This won't work with config files + Config::delete('storage', 'class'); } // Update attachments and photos