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