Merged revisions 81189 via svnmerge from
[asterisk/asterisk.git] / contrib / scripts / vmail.cgi
index 4ac1c85..a87fc1e 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);
                                 }
                         }