diff options
author | Andrew Dolgov <[email protected]> | 2006-07-25 09:24:23 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-07-25 09:24:23 +0100 |
commit | 5f57b06d27f62f5d7335a7073a564eacf557a05d (patch) | |
tree | 04f635dce9b2334fbfff62f3577fa8950bd47f8d | |
parent | 52c61bf8666e83f6be708b343e957ba6fb54933b (diff) |
skip blank params in init-params output
-rw-r--r-- | functions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/functions.php b/functions.php index 885505c92..9cb986251 100644 --- a/functions.php +++ b/functions.php @@ -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\"/>"; + } } } |