Home Forums WTI Like Post PRO PHP error message: in_array() expects parameter 2 to be array… Reply To: PHP error message: in_array() expects parameter 2 to be array…

#421
Webtechideas
Keymaster

We did not find this issue at our end. However you can change the code as suggested below which will fix the above warning message. Open the above file using any text editor and just above the mentioned line, please add the following piece of code:

if (!is_array($instance['category'])) {
	$instance['category'] = (array) $instance['category'];
}

This should work. Please let us know.

Thanks