From 03b71ba353943e40fa0451454b04b1b4446b9b9a Mon Sep 17 00:00:00 2001 From: josch Date: Thu, 11 Oct 2007 19:56:42 +0000 Subject: [PATCH] fixed die bug on empty sql result git-svn-id: http://yolanda.mister-muffin.de/svn@36 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/functions.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/functions.pl b/trunk/functions.pl index 2d90a64..3937031 100644 --- a/trunk/functions.pl +++ b/trunk/functions.pl @@ -43,7 +43,7 @@ sub get_username_from_sid $sth->execute() or die $dbh->errstr; #save the resulting username - my ($username) = $sth->fetchrow_array() or die $dbh->errstr; + my ($username) = $sth->fetchrow_array(); #finish query $sth->finish() or die $dbh->errstr; @@ -71,7 +71,7 @@ sub get_userid_from_sid $sth->execute() or die $dbh->errstr; #save the resulting username - my ($username) = $sth->fetchrow_array() or die $dbh->errstr; + my ($username) = $sth->fetchrow_array(); #finish query $sth->finish() or die $dbh->errstr;