From 3eced865d5a4f1d898e528ec61aafa5bbeedf039 Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Mon, 19 Dec 2016 17:30:11 +0100 Subject: [PATCH] fix bug --- .../ant_creationcategories/AdminAntCreationcategories.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ant_creationcategories/AdminAntCreationcategories.php b/modules/ant_creationcategories/AdminAntCreationcategories.php index 7958bcf7..e0f66304 100644 --- a/modules/ant_creationcategories/AdminAntCreationcategories.php +++ b/modules/ant_creationcategories/AdminAntCreationcategories.php @@ -71,9 +71,9 @@ class AdminAntCreationcategories extends AdminTab $subcategory->groupBox = $groups; $subcategory->add(); - if(isset($subfamilies) && isset($subfamilies[$key]))){ + if(isset($subfamilies) && isset($subfamilies[$key])){ CategoryFamilyCore::addAssociations2($subcategory->id, $subfamilies[$key]); - } elseif (isset($families) && isset($families[$key]))){ + } elseif (isset($families) && isset($families[$key])){ CategoryFamilyCore::addAssociations2($subcategory->id, $families[$key]); } } @@ -114,7 +114,7 @@ class AdminAntCreationcategories extends AdminTab if(isset($subfamilies) && isset($subfamilies[$key])){ CategoryFamilyCore::addAssociations2($subcategory->id, $subfamilies[$key]); - } elseif (isset($families) && isset($families[$key]))){ + } elseif (isset($families) && isset($families[$key])){ CategoryFamilyCore::addAssociations2($subcategory->id, $families[$key]); } }