Viewing 1 replies (of 1 total)
  • I’m not using exclusions so I just commented out the IF statement and closing bracket

    //if ( !in_array($category->cat_ID, $excludecat) ) {
    				$cats[]=$category->cat_ID;
    			//}

    A better approach would likely be to change line 25

    From:
    $excludecat = empty($options['excludecat']) ? '' : explode(',', $options['excludecat']);

    To

    $excludecat = empty($options['excludecat']) ? array() : explode(',', $options['excludecat']);

    but I didn’t test it.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Error on Line 37’ is closed to new replies.