Skip to content

Commit

Permalink
Handle entries without categories
Browse files Browse the repository at this point in the history
The abstracted function to get base_category_ids ‘assumed’ the presence
of some categories, not always the case.
  • Loading branch information
Nathan Pitman committed Sep 23, 2014
1 parent 371836d commit cea5006
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,8 @@ private function _get_base_category_ids($entry_id)
if (! isset($this->cache['base_category_ids'][$entry_id]))
{

$base_category_ids = array();

// Gets existing native category assignments
ee()->db->select('cat_id');
ee()->db->where('entry_id',$entry_id);
Expand Down

0 comments on commit cea5006

Please sign in to comment.