(solved) Viewing regular user profile error

For documentation of changes to the PGSocial Network extension
Post Reply
User avatar
Mandi
Site Admin
Site Admin
Posts: 47
Joined: July 31st, 2023, 8:37 pm
Location: Somewhere, Canada
Contact:

(solved) Viewing regular user profile error

Post by Mandi »

When viewing regular user profile this error showed up

[phpBB Debug] PHP Warning: in file [ROOT]/ext/pgreca/pgsocial/social/social_zebra.php on line 96: Trying to access array offset on value of type bool
User avatar
Mandi
Site Admin
Site Admin
Posts: 47
Joined: July 31st, 2023, 8:37 pm
Location: Somewhere, Canada
Contact:

Re: Viewing regular user profile error

Post by Mandi »

Locate line 96 which looks like this:

Code: Select all

'PROFILE_FRIEND_ACTION'		=> $this->friend_status($row['user_id'])['status'],
Replace with this:

Code: Select all

'PROFILE_FRIEND_ACTION'		=> $this->friend_status($row['user_id'])['status'] ?? null,
Post Reply