mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-18 06:35:27 +00:00
skip blank params in init-params output
This commit is contained in:
@@ -1896,8 +1896,10 @@
|
||||
print "<init-params>";
|
||||
if ($_SESSION["stored-params"]) {
|
||||
foreach (array_keys($_SESSION["stored-params"]) as $key) {
|
||||
$value = htmlspecialchars($_SESSION["stored-params"][$key]);
|
||||
print "<param key=\"$key\" value=\"$value\"/>";
|
||||
if ($key) {
|
||||
$value = htmlspecialchars($_SESSION["stored-params"][$key]);
|
||||
print "<param key=\"$key\" value=\"$value\"/>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user