pkp / textEditorExtras

An OJS plugin to add controls to the rich text editor to upload images, manipulate the HTML code, and add tables.
GNU General Public License v3.0
3 stars 14 forks source link

pkp/textEditorExtras#20 PHP8 problem when initial arrays are unset #21

Open jnugent opened 11 months ago

jnugent commented 11 months ago

This remedies an issue with the initial settings array is empty, preventing

PHP message: PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array,

errors. I am not quite sure if there's a more elegant way to do this but this corrects the problem.

jnugent commented 11 months ago

Janio's original issue error is already fixed in the main branch, it just needs to be pushed into a release.