Procházet zdrojové kódy

Enabled isset() check to avoid notices

Yannick Warnier před 11 roky
rodič
revize
2a0005f1ab
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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;