evalPoll doesn't require title anymore (since it isn't part of the edit-form anymore)

This commit is contained in:
Robert Gaggl 2003-01-05 22:27:19 +00:00
parent 806918f853
commit 2ab5f3ae7c

View file

@ -14,13 +14,12 @@ function evalPoll(param, creator) {
var choiceInput = param.choice; var choiceInput = param.choice;
if (param.choice_array) { if (param.choice_array) {
var choiceCnt = 0; var choiceCnt = 0;
for (var i=0; i<param.choice_array.length; i++) { for (var i in param.choice_array) {
if (param.choice_array[i]) { if (param.choice_array[i])
choiceCnt++; choiceCnt++;
} }
} }
} if (param.question && choiceCnt > 1) {
if (param.title && param.question && creator && choiceCnt > 1) {
this.title = param.title; this.title = param.title;
this.question = param.question; this.question = param.question;
this.modifytime = new Date(); this.modifytime = new Date();