mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user