Jelajahi Sumber

Enabled isset() check to avoid notices

Yannick Warnier 11 tahun lalu
induk
melakukan
2a0005f1ab
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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;