TPac: avoid mkurl param stripping for all defined url params
authorBill Erickson <berick@esilibrary.com>
Thu, 15 Mar 2012 19:32:38 +0000 (15:32 -0400)
committerDan Scott <dan@coffeecode.net>
Fri, 16 Mar 2012 01:21:19 +0000 (21:21 -0400)
Instead of checking truthiness, checked definedness.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/src/templates/opac/parts/header.tt2

index 5db8139..d67a1d3 100644 (file)
@@ -59,7 +59,7 @@
             IF val == ''; cgi.delete(p); END;
 
             # Delete POST vars unless we asked for them
-            UNLESS CGI.url_param(p) OR params.defined(p);
+            UNLESS CGI.url_param(p).defined OR params.defined(p);
                 cgi.delete(p);
             END;
         END;