From 72bee45079a82ff3e8b664cf7dd74452bc488cc8 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Wed, 10 Apr 2019 08:35:44 +0200 Subject: [PATCH] Revert b2794bb2c 'Allow set empty string storge class for legacy' --- src/Core/StorageManager.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Core/StorageManager.php b/src/Core/StorageManager.php index 4b74035ee8..8cd7d43953 100644 --- a/src/Core/StorageManager.php +++ b/src/Core/StorageManager.php @@ -29,8 +29,8 @@ class StorageManager } /** - * @brief Return current storage backend class - * + * @brief Return current storage backend class + * * @return string * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ @@ -53,7 +53,6 @@ class StorageManager /** * @brief Set current storage backend class - * If $class is an empty string, legacy db storage is used. * * @param string $class Backend class name * @return bool @@ -61,7 +60,7 @@ class StorageManager */ public static function setBackend($class) { - if ($class !== "" && !in_array('Friendica\Model\Storage\IStorage', class_implements($class))) { + if (!in_array('Friendica\Model\Storage\IStorage', class_implements($class))) { return false; } -- 2.39.5