Title: Warning: in_array() expects parameter 2 to be array
Last modified: September 1, 2016

---

# Warning: in_array() expects parameter 2 to be array

 *  Resolved [Felipe Chalreo](https://wordpress.org/support/users/golbez/)
 * (@golbez)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-10/)
 * I’m getting this errror. Anyone knows why?
 * Warning: in_array() expects parameter 2 to be array, boolean given in public_html/
   wp-content/plugins/maintenance-switch/admin/views/maintenance-switch-admin-display.
   php on line 243
 * [https://wordpress.org/plugins/maintenance-switch/](https://wordpress.org/plugins/maintenance-switch/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Fugu Design](https://wordpress.org/support/users/fugudesign/)
 * (@fugudesign)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-10/#post-7656398)
 * Hi Felipe,
 * Sorry for the later response and thank you for your feedback.
 * This bug should be solved in the 1.3.6 update of the plugin.
 * Thank you to confirm.
 * Best regards

Viewing 1 replies (of 1 total)

The topic ‘Warning: in_array() expects parameter 2 to be array’ is closed to new
replies.

 * ![](https://ps.w.org/maintenance-switch/assets/icon-256x256.png?rev=1205972)
 * [Maintenance Switch](https://wordpress.org/plugins/maintenance-switch/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/maintenance-switch/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/maintenance-switch/)
 * [Active Topics](https://wordpress.org/support/plugin/maintenance-switch/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maintenance-switch/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maintenance-switch/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Fugu Design](https://wordpress.org/support/users/fugudesign/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-10/#post-7656398)
 * Status: resolved