From fca4b879db31c67e9a661b8a147cb0cafaae714e Mon Sep 17 00:00:00 2001 From: timriker Date: Thu, 21 Nov 2002 21:49:42 +0000 Subject: [PATCH] dbGetColNiceHash needs fixing git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@673 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/dbi.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blootbot/src/dbi.pl b/blootbot/src/dbi.pl index 29bc5c9..fb20e3c 100644 --- a/blootbot/src/dbi.pl +++ b/blootbot/src/dbi.pl @@ -179,7 +179,8 @@ sub dbGetColNiceHash { return; } - %retval = %{ $sth->fetchrow_hashref() }; + # FIXME this dies hard if there are no results + %retval = %{ $sth->fetchrow_hashref }; $sth->finish; -- 2.39.5