Page 1 of 1

(solved) Viewing regular user profile error

Posted: August 14th, 2023, 9:59 pm
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

Re: Viewing regular user profile error

Posted: August 14th, 2023, 10:08 pm
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,