Error with an old plugin using count() function
-
Hey…
I need to keep using an old plugin that creates an is_child function, and there’s a group of code that’s throwing an error and I’m desperately someone out there can explain it to me and how to fix the error that was referring to the count function on the first line?
while( count( $allCats ) != 0 ) { if( in_array( $ofParent, $allCats ) ) { return true; } else { $allCats = is_child_getParents( $allCats ); } }
I’d be exceedingly grateful.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Error with an old plugin using count() function’ is closed to new replies.