fixed die bug on empty sql result

git-svn-id: http://yolanda.mister-muffin.de/svn@36 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2007-10-11 19:56:42 +00:00
parent 7574b2b151
commit 03b71ba353

View file

@ -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;