From d60b65d6966670b35aa1b1bdaaf10f14eb48869c Mon Sep 17 00:00:00 2001 From: shish Date: Tue, 18 Dec 2007 14:05:36 +0000 Subject: [PATCH] stable too git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@665 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/comment/main.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/comment/main.php b/ext/comment/main.php index d407954e..c541cc33 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -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..."); }