fix status for Stationtype ?multiple choice?

This commit is contained in:
oliver 2016-02-27 17:17:38 +01:00
parent e4b7980500
commit 0cfdaf8f49

View file

@ -112,10 +112,13 @@
}
// Get status
$tried = $this->Charactergroupsqueststations->hasCharactergroupTriedStation(
$station['id'],
$charactergroup['id']
);
$tried = false;
if(!is_null($charactergroup)) {
$tried = $this->Charactergroupsqueststations->hasCharactergroupTriedStation(
$station['id'],
$charactergroup['id']
);
}
// Pass data to view