Enabled isset() check to avoid notices

skala
Yannick Warnier 12 years ago
parent d0952ee0fb
commit 2a0005f1ab
  1. 4
      main/exercice/testcategory.class.php

@ -711,9 +711,9 @@ class Testcategory
$newCategoryList = array();
foreach ($categoriesAddedInExercise as $category) {
$categoryId = $category['category_id'];
//if (isset($categories[$categoryId])) {
if (isset($categories[$categoryId])) {
$newCategoryList[$categoryId] = $categories[$categoryId];
//}
}
}
return $newCategoryList;

Loading…
Cancel
Save