From 300086563ccc50160b972d551582bca8922c9bf3 Mon Sep 17 00:00:00 2001 From: TheCoreDev Date: Sat, 23 Jan 2021 04:16:57 +0100 Subject: [PATCH] Correction d'un petit bogue sur les tableaux --- .idea/workspace.xml | 170 +++++------------------- modules/mesCategories/mesCategories.php | 16 +-- 2 files changed, 43 insertions(+), 143 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index cf10cabf..b4be7eb3 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -17,17 +17,8 @@ - - - - - - - - - - + @@ -478,6 +469,15 @@ + + + + + + + + + @@ -485,6 +485,7 @@ + @@ -499,7 +500,7 @@ - + @@ -581,7 +582,9 @@ - + + + 1602059851601 @@ -779,7 +782,14 @@ - @@ -813,7 +823,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + file://$PROJECT_DIR$/modules/mesCategories/mesCategories.php + 239 + + + \ No newline at end of file diff --git a/modules/mesCategories/mesCategories.php b/modules/mesCategories/mesCategories.php index fcfb9327..07b9b21d 100644 --- a/modules/mesCategories/mesCategories.php +++ b/modules/mesCategories/mesCategories.php @@ -238,20 +238,20 @@ class MesCategories extends Module foreach ($categories as $category) { $array_category = array ( - 'category_id' => $category[id_category], - 'category_name' => $category[name], - 'category_img' => $category[name] + 'category_id' => $category["id_category"], + 'category_name' => $category["name"], + 'category_img' => $category["name"] ); - if (Category::hasChildren($category[id_category], $lang_id, true)) { - $subcategories = Category::getChildren($category[id_category], $lang_id, true, true); + if (Category::hasChildren($category["id_category"], $lang_id, true)) { + $subcategories = Category::getChildren($category["id_category"], $lang_id, true, true); $array_subcategories = array(); foreach ($subcategories as $subcategory) { $array_subcategory = array( - 'subcategory_name' => $subcategory[name], - 'subcategory_id' => $subcategory[id_category], - 'subcategory_link' => $subcategory[link_rewrite]); + 'subcategory_name' => $subcategory["name"], + 'subcategory_id' => $subcategory["id_category"], + 'subcategory_link' => $subcategory["link_rewrite"]); array_push($array_subcategories, $array_subcategory); } $array_category['subcategories'] = $array_subcategories;