From fab051a557f8eed5c0c05232639fc607efe75430 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 10 Dec 2002 05:05:57 +0000 Subject: [PATCH] Fixed a potential bug with quickHash and quickHashRef returning nulls. --- lib/WebGUI/SQL.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/SQL.pm b/lib/WebGUI/SQL.pm index 472763db1..21524e8e0 100644 --- a/lib/WebGUI/SQL.pm +++ b/lib/WebGUI/SQL.pm @@ -394,6 +394,8 @@ sub quickHash { $sth->finish; if (defined $data) { return %{$data}; + } else { + return (); } } @@ -422,7 +424,9 @@ sub quickHashRef { $sth->finish; if (defined $data) { return $data; - } + } else { + return {}; + } } #-------------------------------------------------------------------