summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-07-25 09:24:23 +0100
committerAndrew Dolgov <[email protected]>2006-07-25 09:24:23 +0100
commit5f57b06d27f62f5d7335a7073a564eacf557a05d (patch)
tree04f635dce9b2334fbfff62f3577fa8950bd47f8d /functions.php
parent52c61bf8666e83f6be708b343e957ba6fb54933b (diff)
skip blank params in init-params output
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php6
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\"/>";
+ }
}
}