includes/comment.php
changeset 266 917dcc6c4ceb
parent 263 d57af0b0302e
child 320 112debff64bd
equal deleted inserted replaced
265:7e0cdf71b1bb 266:917dcc6c4ceb
   268         if ( getConfig('comments_need_login') == '1' && !$session->user_logged_in )
   268         if ( getConfig('comments_need_login') == '1' && !$session->user_logged_in )
   269         {
   269         {
   270           $real_code = $session->get_captcha($data['captcha_id']);
   270           $real_code = $session->get_captcha($data['captcha_id']);
   271           if ( $real_code != $data['captcha_code'] )
   271           if ( $real_code != $data['captcha_code'] )
   272             $errors[] = 'The confirmation code you entered was incorrect.';
   272             $errors[] = 'The confirmation code you entered was incorrect.';
       
   273           $session->kill_captcha();
   273         }
   274         }
   274         
   275         
   275         if ( count($errors) > 0 )
   276         if ( count($errors) > 0 )
   276         {
   277         {
   277           $ret = Array(
   278           $ret = Array(