]> git.wh0rd.org Git - tt-rss.git/commitdiff
skip blank params in init-params output
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 25 Jul 2006 08:24:23 +0000 (09:24 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 25 Jul 2006 08:24:23 +0000 (09:24 +0100)
functions.php

index 885505c922545e8023d4d07fcb7e6eb751772a1c..9cb98625161ea3606f58a2d51f38d57daf9e248f 100644 (file)
                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\"/>";
+                               }
                        }
                }