Minor - fix php warning

pull/2650/head
Julio Montoya 7 years ago
parent c62a23f081
commit a6e7489964
  1. 6
      main/exercise/exercise.class.php

@ -8347,8 +8347,10 @@ class Exercise
if (isset($objQuestionTmp->parent_id) && $objQuestionTmp->parent_id != 0) {
$mediaList[$objQuestionTmp->parent_id][] = $objQuestionTmp->id;
} else {
// Always the last item
$mediaList[999][] = $objQuestionTmp->id;
if ($objQuestionTmp) {
// Always the last item
$mediaList[999][] = $objQuestionTmp->id;
}
}
}
}

Loading…
Cancel
Save