stable too
git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@665 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
31b94c1820
commit
d60b65d696
@ -278,6 +278,9 @@ class CommentList extends Extension {
|
||||
if(!$config->get_bool('comment_anon') && $user->is_anonymous()) {
|
||||
$this->theme->display_error($page, "Permission Denied", "Anonymous posting has been disabled");
|
||||
}
|
||||
else if(is_null($database->get_image($image_id))) {
|
||||
$event->veto("The image does not exist");
|
||||
}
|
||||
else if(trim($comment) == "") {
|
||||
$this->theme->display_error($page, "Comment Empty", "Comments need text...");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user