diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php index d32e9ede..ac6abe8f 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php @@ -138,7 +138,7 @@ class PagewidgetController extends Controller // Notification création widget $groups=$page->getGroups(); - if($groups) { + if($groups[0]) { if($groups[0]->getFgcanshare()) { $message="Création Widget ".$entity->getName(); $usergroup=$em->getRepository("CadolesCoreBundle:Usergroup")->findOneBy(["group"=>$groups[0],"user"=>$this->getUser()]); @@ -283,7 +283,7 @@ class PagewidgetController extends Controller // Notification création widget $groups=$entity->getPage()->getGroups(); - if($groups) { + if($groups[0]) { if($groups[0]->getFgcanshare()) { $message="Suppression Widget ".$entity->getName(); $usergroup=$em->getRepository("CadolesCoreBundle:Usergroup")->findOneBy(["group"=>$groups[0],"user"=>$this->getUser()]); diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewalert.html.twig b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewalert.html.twig index 9cdfa329..460f8d3f 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewalert.html.twig +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewalert.html.twig @@ -15,8 +15,8 @@