diff --git a/views/tpls/forms/sommom/organisme.php b/views/tpls/forms/sommom/organisme.php index b185c5fad91d15da7467323b547929715d588ab7..5bd7d545befdc0479cbc81898aad20dca5419423 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"])) {