mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
Forum: better error messages (Suggested by @anyeor)
This commit is contained in:
@@ -31,8 +31,12 @@ if(Forum::isModerator())
|
||||
header('Location: ' . getForumThreadLink($post['first_post'], (int) $_page));
|
||||
}
|
||||
}
|
||||
else
|
||||
echo 'Post with ID ' . $id . ' does not exist.';
|
||||
else {
|
||||
$errors[] = 'Post with ID ' . $id . ' does not exist.';
|
||||
displayErrorBoxWithBackButton($errors, getLink('forum'));
|
||||
}
|
||||
}
|
||||
else {
|
||||
$errors[] = 'You are not logged in or you are not moderator.';
|
||||
displayErrorBoxWithBackButton($errors, getLink('forum'));
|
||||
}
|
||||
else
|
||||
echo 'You are not logged in or you are not moderator.';
|
||||
|
Reference in New Issue
Block a user