playSMS Forum

Bug when editing user in phonebook

Hi!

When I try to edit a user in phonebbok (adding a new group to an existing user), I end up with a blank window and an error 500.

logs read :
PHP Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/html/playsms/plugin/feature/phonebook/phonebook.php:393

Looking at the file, l393, the variable $maps is used as an array and obviously it has to be an array. However it is defined as a string l364 : $maps= ‘’;
Changing $maps = ‘’; to $maps = []; @l364 fixed the issue

Playsms version is 1.4.5

Regards