Remove exit statement - use else instead

This commit is contained in:
raphi 2015-04-17 09:43:34 +00:00
parent 034419f403
commit 4d12ec4f22

View file

@ -19,8 +19,7 @@ if (!RequestUtils::isPost()) {
$tpl = new Tpl;
$tpl->assign('seconds', $spamPrevention);
$tpl->draw('spam');
exit;
}
} else {
// Parse request
$pattern = RequestUtils::parsePattern();
$keyboardLayout = RequestUtils::parseKeyboardLayout();
@ -57,5 +56,5 @@ if (!RequestUtils::isPost()) {
// Cleanup temporary SVG images
unlink($back);
unlink($front);
}
}