Commit 3e1f2773 authored by Arnab Nandi's avatar Arnab Nandi

code conformity

parent 3b341129
......@@ -211,7 +211,8 @@ function captcha_form_alter($formid, &$form) {
// include logic to remove captcha if the current entry is a valid captcha
if (!$_SESSION['captcha_comment_correct'] && !($_POST['edit']['captcha_word'] != '' && _captcha_validate($_POST['edit']['captcha_word']))) {
$form['captcha'] = _captcha_form();
} else {
}
else {
$_SESSION['captcha']='';
unset($form['captcha']);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment