1
0
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:
Andrew Dolgov
2006-07-25 09:24:23 +01:00
parent 52c61bf866
commit 5f57b06d27

View File

@@ -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\"/>";
}
}
}