Fix warning PHP seen in N°3702 - Migrate module to new UIBlock system : Follow-up forms without authentication

This commit is contained in:
acognet
2021-12-23 13:17:16 +01:00
parent 19eef5bd72
commit ed12f98075

View File

@@ -578,7 +578,11 @@ HTML
$aContactPicturesCache = array();
$aPeerColorClassCache = array();
// Note: Yes, the config. param. is named after the backoffice element but we hope that we will "soon" have some kind of "light" activity panel in the portal too, so we keep this name.
$bHideContactPicture = in_array(PORTAL_ID, utils::GetConfig()->Get('activity_panel.hide_avatars'));
$bHideContactPicture = false;
if (defined('PORTAL_ID'))
{
$bHideContactPicture= in_array(PORTAL_ID, utils::GetConfig()->Get('activity_panel.hide_avatars'));
}
// Current user
$iCurrentUserId = UserRights::GetUserId();