finer control of not-to-show hidden-input-fields and link-args

This commit is contained in:
Ralf Becker 2001-10-04 17:42:55 +00:00
parent d9b680ccae
commit 285b98a9b8

View File

@ -32,7 +32,7 @@ class html
} }
while (list($name,$value) = each($vars)) while (list($name,$value) = each($vars))
{ {
if ($value != '') // dont need to send all the empty vars if ($value && !($name == 'filter' && $value == 'none')) // dont need to send all the empty vars
{ {
$html .= "<input type=hidden name=\"$name\" value=\"$value\">\n"; $html .= "<input type=hidden name=\"$name\" value=\"$value\">\n";
} }
@ -57,7 +57,7 @@ class html
$v = array( ); $v = array( );
while(list($name,$value) = each($vars)) while(list($name,$value) = each($vars))
{ {
if ($value != '') // dont need to send all the empty vars if ($value && !($name == 'filter' && $value == 'none')) // dont need to send all the empty vars
{ {
$v[] = "$name=$value"; $v[] = "$name=$value";
} }