hide Stations map if no station has been discovered yet
This commit is contained in:
parent
1b19187587
commit
4f0c7e2fa8
2 changed files with 5 additions and 0 deletions
|
|
@ -90,6 +90,7 @@
|
|||
// Get Stations
|
||||
$stations = null;
|
||||
$stations = $this->Charactergroupsqueststations->getStationsForQuest($quest['id']);
|
||||
$stationsDiscovered = false;
|
||||
foreach($stations as &$station)
|
||||
{
|
||||
// Icon
|
||||
|
|
@ -104,6 +105,7 @@
|
|||
$charactergroup['id']
|
||||
);
|
||||
if($station['entered']) {
|
||||
$stationsDiscovered = true;
|
||||
$station['tried'] = $this->Charactergroupsqueststations->hasCharactergroupTriedStation(
|
||||
$station['id'],
|
||||
$charactergroup['id']
|
||||
|
|
@ -147,6 +149,7 @@
|
|||
$this->set('quest', $quest);
|
||||
$this->set('questgroup', $questgroup);
|
||||
$this->set('stations', $stations);
|
||||
$this->set('stationsDiscovered', $stationsDiscovered);
|
||||
$this->set('groups', $groups);
|
||||
$this->set('uploads', $uploads);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue