Merged revisions 81189 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r81189 | mmichelson | 2007-08-28 09:12:14 -0500 (Tue, 28 Aug 2007) | 5 lines

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/trunk@81190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Mark Michelson 18 years ago
parent 8176c0ee7c
commit aea8783546

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

Loading…
Cancel
Save