]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fixes a forwarding problem when using res_config_mysql
authorMark Michelson <mmichelson@digium.com>
Tue, 28 Aug 2007 14:12:14 +0000 (14:12 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 28 Aug 2007 14:12:14 +0000 (14:12 +0000)
(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

contrib/scripts/vmail.cgi

index 4ac1c857952bc5aa68d62e85e0487ff684d00f83..a87fc1e844dea691d0f846d649db35c815cfc19e 100644 (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);
                                 }
                         }