Prettier simple-antispam

This commit is contained in:
Zankaria
2024-03-14 14:40:55 +01:00
parent 3ac86a074a
commit d5109426d9
2 changed files with 8 additions and 10 deletions

View File

@@ -558,7 +558,7 @@ if (isset($_POST['delete'])) {
if (!$dropped_post) {
if (isset($config['simple_spam']) && $config['simple_spam'] && $post['op']) {
if ($config['simple_spam'] && $post['op']) {
if (!isset($_POST['simple_spam']) || strtolower($config['simple_spam']['answer']) != strtolower($_POST['simple_spam'])) {
error($config['error']['simple_spam']);
}