bug 1138: Properly bail out to remark on missing ticket number
authorBenny Baumann <BenBE@geshi.org>
Tue, 29 Apr 2014 21:07:33 +0000 (23:07 +0200)
committerBenny Baumann <BenBE@geshi.org>
Wed, 30 Apr 2014 18:18:55 +0000 (20:18 +0200)
includes/account.php

index 17427a2..1f44593 100644 (file)
@@ -2906,10 +2906,11 @@ function buildSubjectFromSession() {
                $row = mysql_fetch_assoc(mysql_query($query));
                $ver = !$row['tverify'];
                mysql_query("update `users` set `tverify`='$ver' where `id`='$memid'");
-       }else{
+       }elseif($id == 43 && array_key_exists('tverify',$_REQUEST) && $_REQUEST['tverify'] > 0 && $ticketvalidation==FALSE){
                $_SESSION['ticketmsg']='No action taken. Ticket number is missing!';
        }
- */
+       */
+
        if($id == 43 && array_key_exists('assurer',$_REQUEST) && $_REQUEST['assurer'] > 0 && $ticketvalidation == TRUE)
        {
                csrf_check('admsetassuret');