From 1a3912f25a27c8d78aacbbee98f6056f4ad47f1a Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 21 Dec 2025 19:26:08 +0100 Subject: Improve configuration checks (#8334) Add a distinction between recommended and required extensions. Add check for recommended php-intl extension as follow-up of https://github.com/FreshRSS/FreshRSS/pull/8329#issuecomment-3677686581 Improve related checks such as ZIP. Reduce duplicated translations and tests. --- lib/Minz/ModelPdo.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/Minz/ModelPdo.php') diff --git a/lib/Minz/ModelPdo.php b/lib/Minz/ModelPdo.php index cb541a1e4..e481911bc 100644 --- a/lib/Minz/ModelPdo.php +++ b/lib/Minz/ModelPdo.php @@ -82,10 +82,7 @@ class Minz_ModelPdo { $this->pdo->setPrefix($db['prefix'] . $this->current_user . '_'); break; default: - throw new Minz_PDOConnectionException( - 'Invalid database type!', - $db['user'], Minz_Exception::ERROR - ); + throw new Minz_PDOConnectionException('Invalid database type!', is_string($db['user'] ?? null) ? $db['user'] : '', Minz_Exception::ERROR); } if (self::$usesSharedPdo) { self::$sharedPdo = $this->pdo; -- cgit v1.2.3