equal
deleted
inserted
replaced
260 |
260 |
261 // CAPTCHA code |
261 // CAPTCHA code |
262 if ( getConfig('comments_need_login') == '1' && !$session->user_logged_in ) |
262 if ( getConfig('comments_need_login') == '1' && !$session->user_logged_in ) |
263 { |
263 { |
264 $real_code = $session->get_captcha($data['captcha_id']); |
264 $real_code = $session->get_captcha($data['captcha_id']); |
265 if ( $real_code != $data['captcha_code'] ) |
265 if ( strtolower($real_code) != strtolower($data['captcha_code']) ) |
266 $errors[] = 'The confirmation code you entered was incorrect.'; |
266 $errors[] = 'The confirmation code you entered was incorrect.'; |
267 $session->kill_captcha(); |
267 $session->kill_captcha(); |
268 } |
268 } |
269 |
269 |
270 if ( count($errors) > 0 ) |
270 if ( count($errors) > 0 ) |