From 68315094751e3bff94bd7a1c001dcefa2e957e54 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Wed, 3 Jun 2009 09:29:57 +0200 Subject: do not add empty comment --- participate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'participate.rb') diff --git a/participate.rb b/participate.rb index b4a7f66..45c0148 100644 --- a/participate.rb +++ b/participate.rb @@ -67,7 +67,7 @@ if $cgi.include?("add_participant") table.add_participant($cgi["add_participant"],agreed) end -table.add_comment($cgi["commentname"],$cgi["comment"]) if $cgi.include?("comment") +table.add_comment($cgi["commentname"],$cgi["comment"]) if $cgi["comment"] != "" table.delete_comment($cgi["delete_comment"].to_i) if $cgi.include?("delete_comment") # POLL -- cgit v1.2.3