# HG changeset patch # User bsw # Date 1345423114 -7200 # Node ID e81f35cdc0881ee38748e9b4055417c922c52675 # Parent a1c7858c15e9075a67a5d0e88ad56442210021a7 Fixed error in vote form diff -r a1c7858c15e9 -r e81f35cdc088 app/main/vote/list.lua --- a/app/main/vote/list.lua Mon Aug 20 01:29:18 2012 +0200 +++ b/app/main/vote/list.lua Mon Aug 20 02:38:34 2012 +0200 @@ -434,7 +434,7 @@ local rendered_comment = format.wiki_text(comment, formatting_engine) slot.put(rendered_comment) end - if (readonly or direct_voter.comment) and not preview then + if (readonly or direct_voter and direct_voter.comment) and not preview then local text if direct_voter and direct_voter.comment_changed then text = _("Voting comment (last updated: #{timestamp})", { timestamp = format.timestamp(direct_voter.comment_changed) })