Fixes a forwarding problem when using res_config_mysql

(closes issue #10573, reported by chrisvaughan, patch suggested by chrisvaughan as well)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Michelson
2007-08-28 14:12:14 +00:00
parent 214d980f86
commit ee44807d4b

View File

@@ -242,7 +242,7 @@ sub validmailbox()
my $dbh = DBI->connect("DBI:mysql:$dbname:$dbhost",$dbuser,$dbpass);
my $sth = $dbh->prepare(qq{select fullname,context from voicemail where mailbox='$mbox' and password='$pass' and context='$context'});
$sth->execute();
if (($fullname, $category) = $sth->fetchrow_array()) {;
if (($fullname, $context) = $sth->fetchrow_array()) {;
return ($fullname ? $fullname : "unknown", $category);
}
}