diff --git a/ext/comment/main.php b/ext/comment/main.php index b86abc40..4f100a3f 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -310,6 +310,9 @@ class CommentList extends Extension { if(!$config->get_bool('comment_anon') && $user->is_anonymous()) { $event->veto("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) == "") { $event->veto("Comments need text..."); }