Permalink
Browse files

Fixing syntax error

  • Loading branch information...
1 parent 068a200 commit 678b0ae9aa0fd0a7742248dd02c2e2ae04fdce3e Jonas Galvez committed Aug 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 pagetalk.js
View
2 pagetalk.js
@@ -44,7 +44,7 @@ http_server.post('/voting-room', function(req, res) {
var options = JSON.parse(req.body);
var voting_room_id = create_random_id(10);
var vr = poorsman_mongodb.voting_rooms[voting_room_id] = {};
- for(var i = 0, len = options.length; i++) {
+ for(var i = 0, len = options.length; i < len; i++) {
vr[options[i]] = options[i];
}
res.redirect('/voting-room/' + voting_room_id);

0 comments on commit 678b0ae

Please sign in to comment.