correctif si groupe shared sans page

This commit is contained in:
afornerot 2021-08-27 10:02:15 +02:00
parent ac37691536
commit 63c710c4fd
5 changed files with 5 additions and 5 deletions

View File

@ -361,7 +361,7 @@ class BlogController extends Controller
if($groups[0]) { if($groups[0]) {
if($groups[0]->getFgcanshare()) { if($groups[0]->getFgcanshare()) {
$pages=$groups[0]->getPages(); $pages=$groups[0]->getPages();
if($pages) { if($pages[0]) {
$idpage=$pages[0]->getId(); $idpage=$pages[0]->getId();
$groups=$pages[0]->getGroups(); $groups=$pages[0]->getGroups();
$idgroup=$groups[0]->getId(); $idgroup=$groups[0]->getId();

View File

@ -182,7 +182,7 @@ class BlogarticleController extends Controller
if($groups[0]) { if($groups[0]) {
if($groups[0]->getFgcanshare()) { if($groups[0]->getFgcanshare()) {
$pages=$groups[0]->getPages(); $pages=$groups[0]->getPages();
if($pages) { if($pages[0]) {
$idpage=$pages[0]->getId(); $idpage=$pages[0]->getId();
$groups=$pages[0]->getGroups(); $groups=$pages[0]->getGroups();
$idgroup=$groups[0]->getId(); $idgroup=$groups[0]->getId();

View File

@ -341,7 +341,7 @@ class CalendarController extends Controller
if($groups[0]) { if($groups[0]) {
if($groups[0]->getFgcanshare()) { if($groups[0]->getFgcanshare()) {
$pages=$groups[0]->getPages(); $pages=$groups[0]->getPages();
if($pages) { if($pages[0]) {
$idpage=$pages[0]->getId(); $idpage=$pages[0]->getId();
$groups=$pages[0]->getGroups(); $groups=$pages[0]->getGroups();
$idgroup=$groups[0]->getId(); $idgroup=$groups[0]->getId();

View File

@ -362,7 +362,7 @@ class ProjectController extends Controller
if($groups[0]) { if($groups[0]) {
if($groups[0]->getFgcanshare()) { if($groups[0]->getFgcanshare()) {
$pages=$groups[0]->getPages(); $pages=$groups[0]->getPages();
if($pages) { if($pages[0]) {
$idpage=$pages[0]->getId(); $idpage=$pages[0]->getId();
$groups=$pages[0]->getGroups(); $groups=$pages[0]->getGroups();
$idgroup=$groups[0]->getId(); $idgroup=$groups[0]->getId();

View File

@ -207,7 +207,7 @@ class ProjecttaskController extends Controller
if($groups[0]) { if($groups[0]) {
if($groups[0]->getFgcanshare()) { if($groups[0]->getFgcanshare()) {
$pages=$groups[0]->getPages(); $pages=$groups[0]->getPages();
if($pages) { if($pages[0]) {
$idpage=$pages[0]->getId(); $idpage=$pages[0]->getId();
$groups=$pages[0]->getGroups(); $groups=$pages[0]->getGroups();
$idgroup=$groups[0]->getId(); $idgroup=$groups[0]->getId();