Skip to content

Commit

Permalink
Test: Show Results Ordered by Objectives
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Sep 30, 2024
1 parent 19720c3 commit 6161606
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public function loadObjectivesTitles()
*/
public function getQuestionRelatedObjectiveTitles($questionId): string
{
if (!isset($this->objectivesByQuestion['questionId'])
|| !is_array($this->objectivesByQuestion['questionId'])) {
if (!isset($this->objectivesByQuestion[$questionId])
|| !is_array($this->objectivesByQuestion[$questionId])) {
return '';
}

Expand Down Expand Up @@ -135,8 +135,8 @@ public function getObjectives(): array

public function isQuestionRelatedToObjective($questionId, $objectiveId): bool
{
if (!isset($this->objectivesByQuestion['questionId'])
|| !is_array($this->objectivesByQuestion['questionId'])) {
if (!isset($this->objectivesByQuestion[$questionId])
|| !is_array($this->objectivesByQuestion[$questionId])) {
return false;
}

Expand Down

0 comments on commit 6161606

Please sign in to comment.