Skip to content

Commit

Permalink
add errormessage, if current trip id is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
TimRepke committed Oct 20, 2016
1 parent 6208b17 commit e0aa1cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions registration-system/admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class AdminBase extends DefaultAdmin {
public function __construct() {
parent::__construct();

if (is_null($this->environment->getCurrentTripId()))
throw new Exception('Error on reading current_trip_id file, contact the webadmin!');

$this->isAdmin = $this->environment->isAdmin();
$this->isSudo = $this->environment->isSuperAdmin();

Expand Down

0 comments on commit e0aa1cb

Please sign in to comment.