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 2ddb00f commit 9212cdd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,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 @@ -137,8 +137,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 9212cdd

Please sign in to comment.