From: fabrixxm Date: Wed, 10 Apr 2019 06:35:44 +0000 (+0200) Subject: Revert b2794bb2c 'Allow set empty string storge class for legacy' X-Git-Url: https://git.mxchange.org/?p=friendica.git;a=commitdiff_plain;h=72bee45079a82ff3e8b664cf7dd74452bc488cc8 Revert b2794bb2c 'Allow set empty string storge class for legacy' --- 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; }