pls help me to correct this (on my wordpress theme):
Warning: count(): Parameter must be an array or an object that implements Countable in generic.php on line 1104
1104:
1104 if(count($merged==0))
1105 $merged[]=0;
1106
1107 $params = array(
1108 'post__in' => $merged,
1109 'post_type' => $all_post_types,
1110 'posts_per_page' => -1,
1111 'suppress_filter' => false,
1112 'orderby' => 'post__in'
1113 );
I'm no coder so a copy and paste solution would be highly appriciated, thank you so much in advance
I tried and changed: 1104:
if(count($merged==0))
$merged[]=0;
to just
if(count($merged)==0)
or
if($merged)==0)
or
if(!is_array($merged)==0))
that did nothing or screwed the side completely. I guess the Problem is after 7.2 the parameter NULL is no longer valid. so I checked the forum but nothing matches this specific "merged"