aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-09-04 21:12:56 +0200
committerGravatar GitHub <noreply@github.com> 2024-09-04 21:12:56 +0200
commitefa0a921716772a13ee1bd62f1d882d39b733665 (patch)
tree162fddb618d1733851730a571bdde5579e190d9f /lib
parent91d0e5099bad4675a8e8ab8cfb52e3abab1cd2ba (diff)
Fix feed title option (#6771)
fix https://github.com/FreshRSS/FreshRSS/issues/6756
Diffstat (limited to 'lib')
-rw-r--r--lib/Minz/Request.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php
index 63464e8f1..1f15730fb 100644
--- a/lib/Minz/Request.php
+++ b/lib/Minz/Request.php
@@ -106,7 +106,7 @@ class Minz_Request {
return 0;
}
- public static function paramString(string $key, bool $specialchars = false): string {
+ public static function paramStringNull(string $key, bool $specialchars = false): ?string {
if (isset(self::$params[$key])) {
$s = self::$params[$key];
if (is_string($s)) {
@@ -117,7 +117,11 @@ class Minz_Request {
return (string)$s;
}
}
- return '';
+ return null;
+ }
+
+ public static function paramString(string $key, bool $specialchars = false): string {
+ return self::paramStringNull($key, $specialchars) ?? '';
}
/**