Skip to content

Commit

Permalink
fix null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
v1r0x committed Mar 17, 2016
1 parent 43a4473 commit 39d0c8a
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 39d0c8a

Please sign in to comment.