The following changes corrected that issue:
Locate line 316 which looks like this:
Code: Select all
if ($friends['status'] == 'PG_SOCIAL_FRIENDS' || $user_id == (int) $this->user->data['user_id'])Code: Select all
if ($friends['status'] ?? 'default value' == 'PG_SOCIAL_FRIENDS' || $user_id == (int) $this->user->data['user_id'])Code: Select all
'PROFILE_FRIEND_ACTION' => $friends['status'],Code: Select all
'PROFILE_FRIEND_ACTION' => $friends['status'] ?? null,Code: Select all
'PROFILE_FRIEND_ACT_ICON' => $friends['icon'],Code: Select all
'PROFILE_FRIEND_ACT_ICON' => $friends['icon'] ?? null,Code: Select all
'GALLERY_NAME' => $this->social_photo->gallery_info($this->request->variable('gall', ''), $gallumb)['gallery_name'],Code: Select all
'GALLERY_NAME' => $this->social_photo->gallery_info($this->request->variable('gall', ''), $gallumb)['gallery_name'] ?? null,Code: Select all
'GALLERY_PRIVACY' => $this->social_photo->gallery_info($this->request->variable('gall', ''), $gallumb)['gallery_privacy'],Code: Select all
'GALLERY_PRIVACY' => $this->social_photo->gallery_info($this->request->variable('gall', ''), $gallumb)['gallery_privacy'] ?? null,