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:
shish 2007-12-18 14:05:36 +00:00
parent 31b94c1820
commit d60b65d696

View File

@ -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...");
}