On the product category page, the following error is being displayed: Warning: in_array() [function

On the product category page, the following error is being displayed:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home1/asharman/public_html/wp-includes/post-template.php on line 1036

Do you have any idea how i can solve this?

Thanks