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:
parent
7574b2b151
commit
03b71ba353
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue