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
1 changed files with 4 additions and 2 deletions

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