Force scalar context to avoid getting () back and the associated odd number of elements in hash warnings.

This commit is contained in:
Scott Walters 2010-08-09 14:46:45 -04:00
parent b7cb774e60
commit c1a918493f

View file

@ -392,7 +392,7 @@ sub appendTemplateVarsSearchForm {
$var->{ searchForm_location }
= WebGUI::Form::text( $session, {
name => "location",
value => $form->get("location"),
value => scalar $form->get("location"),
});
# Search classes