Sfoglia il codice sorgente

Enabled isset() check to avoid notices

Yannick Warnier 11 anni fa
parent
commit
2a0005f1ab
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      main/exercice/testcategory.class.php

+ 2 - 2
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;