Skip to content

Commit

Permalink
Merge pull request #44 from v1r0x/fix-blank-page
Browse files Browse the repository at this point in the history
fix null pointer
  • Loading branch information
v1r0x committed Mar 17, 2016
2 parents 43a4473 + 39d0c8a commit b49ab3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/pagecontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ public function insertVote($pollId, $userId, $types, $dates, $notif, $changed) {
} else {
$userId = $userId . ' (extern)';
}
$poll = $this->eventMapper->find($pollId);
if($changed === 'true') {
$poll = $this->eventMapper->find($pollId);
$dates = json_decode($dates);
$types = json_decode($types);
if($poll->getType() === '0') $this->participationMapper->deleteByPollAndUser($pollId, $userId);
Expand Down

0 comments on commit b49ab3f

Please sign in to comment.