diff --git a/bw_required_category/ext.bw_required_category.php b/bw_required_category/ext.bw_required_category.php index 1d4c8db..78f59f0 100644 --- a/bw_required_category/ext.bw_required_category.php +++ b/bw_required_category/ext.bw_required_category.php @@ -116,7 +116,7 @@ function _check_category_presence($channel_id=0, $categories=array()) // If channel doesn't have to be checked for categories, skip the check if ( ! in_array($channel_id, $this->enabled_channels)) return TRUE; - if ( ! is_array($categories) OR count($categories) === 0) + if ( ! is_array($categories) OR count($categories) === 0 OR (count($categories) === 1 && empty($categories[0])) ) { return FALSE; }