From ee0f50fcad93c5465bcb9630b85b90b906b42c79 Mon Sep 17 00:00:00 2001 From: Anatole Date: Mon, 17 Aug 2020 09:13:15 +0300 Subject: [PATCH] sommom correction bug --- views/tpls/forms/sommom/organisme.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/views/tpls/forms/sommom/organisme.php b/views/tpls/forms/sommom/organisme.php index b185c5f..5bd7d54 100644 --- a/views/tpls/forms/sommom/organisme.php +++ b/views/tpls/forms/sommom/organisme.php @@ -20,9 +20,14 @@ } } - $communityLinks = Element::getByTypeAndId($this->costum["contextType"],$this->costum["contextId"]); + if (isset($this->costum["contextType"]) and isset($this->costum["contextId"])) { + + $communityLinks = Element::getByTypeAndId($this->costum["contextType"],$this->costum["contextId"]); + + } $partenaire = false; + if (isset($communityLinks["links"]["members"])) { foreach ($communityLinks["links"]["members"] as $memberId => $memberValue) { if(isset(Yii::app()->session["userId"])){ if($memberId != ""){ @@ -38,6 +43,7 @@ } } } + } $adminStatus = false; if (isset($this->costum["admins"])) { -- GitLab