fix language construct mistake for calculating solved-status for Questgroups
This commit is contained in:
parent
e61e9e9744
commit
0bf5253fc4
1 changed files with 4 additions and 1 deletions
|
|
@ -283,7 +283,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get next Quests
|
// Get next Quests
|
||||||
while(!is_null($currentQuest) && $nextQuests = $this->Quests->getNextQuests($currentQuest['id']) && !empty($nextQuests))
|
$nextQuests = !is_null($currentQuest) ? $this->Quests->getNextQuests($currentQuest['id']) : null;
|
||||||
|
while(!is_null($currentQuest) && !empty($nextQuests))
|
||||||
{
|
{
|
||||||
// Get choosed Quest
|
// Get choosed Quest
|
||||||
$currentQuest = null;
|
$currentQuest = null;
|
||||||
|
|
@ -302,6 +303,8 @@
|
||||||
if(!$this->Quests->hasCharacterSolvedQuest($currentQuest['id'], $characterId)) {
|
if(!$this->Quests->hasCharacterSolvedQuest($currentQuest['id'], $characterId)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$nextQuests = !is_null($currentQuest) ? $this->Quests->getNextQuests($currentQuest['id']) : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue