Remove exit statement - use else instead
This commit is contained in:
parent
034419f403
commit
4d12ec4f22
1 changed files with 37 additions and 38 deletions
|
@ -19,8 +19,7 @@ if (!RequestUtils::isPost()) {
|
||||||
$tpl = new Tpl;
|
$tpl = new Tpl;
|
||||||
$tpl->assign('seconds', $spamPrevention);
|
$tpl->assign('seconds', $spamPrevention);
|
||||||
$tpl->draw('spam');
|
$tpl->draw('spam');
|
||||||
exit;
|
} else {
|
||||||
}
|
|
||||||
// Parse request
|
// Parse request
|
||||||
$pattern = RequestUtils::parsePattern();
|
$pattern = RequestUtils::parsePattern();
|
||||||
$keyboardLayout = RequestUtils::parseKeyboardLayout();
|
$keyboardLayout = RequestUtils::parseKeyboardLayout();
|
||||||
|
@ -57,5 +56,5 @@ if (!RequestUtils::isPost()) {
|
||||||
// Cleanup temporary SVG images
|
// Cleanup temporary SVG images
|
||||||
unlink($back);
|
unlink($back);
|
||||||
unlink($front);
|
unlink($front);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue