From c1a918493f3a22707b65e7b33b87693897f2d18c Mon Sep 17 00:00:00 2001 From: Scott Walters Date: Mon, 9 Aug 2010 14:46:45 -0400 Subject: [PATCH] Force scalar context to avoid getting () back and the associated odd number of elements in hash warnings. --- lib/WebGUI/Asset/Wobject/Gallery.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset/Wobject/Gallery.pm b/lib/WebGUI/Asset/Wobject/Gallery.pm index 27047f852..6a291c64a 100644 --- a/lib/WebGUI/Asset/Wobject/Gallery.pm +++ b/lib/WebGUI/Asset/Wobject/Gallery.pm @@ -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