diff options
author | v1r0x <vinzenz.rosenkranz@gmail.com> | 2016-03-17 23:29:27 +0300 |
---|---|---|
committer | v1r0x <vinzenz.rosenkranz@gmail.com> | 2016-03-17 23:29:27 +0300 |
commit | 39d0c8ad22faa03e471c86ed250aec8299e555e2 (patch) | |
tree | 32acf7845cdd160f2b52bf60abbdb5ca30921711 /controller | |
parent | 43a4473c7d3efed8990453f11e368d2d4ede9d0c (diff) |
fix null pointer
Diffstat (limited to 'controller')
-rw-r--r-- | controller/pagecontroller.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/pagecontroller.php b/controller/pagecontroller.php index f0109bc4..d4a00217 100644 --- a/controller/pagecontroller.php +++ b/controller/pagecontroller.php @@ -363,8 +363,8 @@ class PageController extends Controller { } 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); |