From a1b5893bd37cd733da5afaa83f8eb6af59633666 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 5 Mar 2025 16:45:34 +0100 Subject: Fix Minz_Request::paramArray (#7400) fix https://github.com/FreshRSS/FreshRSS/issues/7371 Regression from https://github.com/FreshRSS/FreshRSS/pull/7131 --- lib/Minz/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index b74331146..2f76b9aa8 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -63,7 +63,7 @@ class Minz_Request { /** * @param bool $plaintext `true` to return special characters without any escaping (unsafe), `false` (default) to XML-encode them - * @return array> + * @return array> */ public static function paramArray(string $key, bool $plaintext = false): array { if (empty(self::$params[$key]) || !is_array(self::$params[$key])) { @@ -76,7 +76,7 @@ class Minz_Request { } elseif (is_array($v)) { $vs = []; foreach ($v as $k2 => $v2) { - if (is_string($k2) && (is_string($v2) || is_int($v2) || is_bool($v2))) { + if (is_string($v2) || is_int($v2) || is_bool($v2)) { $vs[$k2] = $v2; } } -- cgit v1.2.3