From fd323158660b34c009359ac24efa0e825523a86d Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Sun, 7 May 2006 14:40:07 +0000 Subject: [PATCH] fix --- lib/WebGUI/SQL.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/SQL.pm b/lib/WebGUI/SQL.pm index 848044b0b..48aeaabb2 100644 --- a/lib/WebGUI/SQL.pm +++ b/lib/WebGUI/SQL.pm @@ -220,8 +220,9 @@ An array reference containing values for any placeholder params used in the SQL sub buildArrayRefOfHashRefs { my @array; my $sth = $_[0]->read($_[1],$_[2]); - while ($sth->hashRef) { - push(@array,$_); + my $data; + while ($data = $sth->hashRef) { + push(@array,$data); } $sth->finish; return \@array;