aboutsummaryrefslogtreecommitdiff
path: root/poll.rb
diff options
context:
space:
mode:
Diffstat (limited to 'poll.rb')
-rw-r--r--poll.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/poll.rb b/poll.rb
index d03d584..6ccbae2 100644
--- a/poll.rb
+++ b/poll.rb
@@ -142,6 +142,7 @@ class Poll
if @data.include?(edituser)
@head.each_columnid{|k| checked[k] = @data[edituser][k]}
else
+ edituser = $cgi.cookies["username"][0] unless @data.include?($cgi.cookies["username"][0])
@head.each_columnid{|k| checked[k] = NOVAL}
end
ret = "<tr id='add_participant'>\n"