protected function buildFilter($aFilter) { $where = parent::buildFilter($aFilter); //we are extending the core, right? //this makes sure there is NO content listed in case there are no entries commented by me or my friends if (empty($aFilter['topic_id'])) { $aFilter['topic_id'] = 0; } //extend the default filter if (isset($aFilter['topic_id'])) { $aFilter['topic_id'] = (array) $aFilter['topic_id']; $aFilter['topic_id'][] = 0; //safety pin $where .= ' AND topic_id IN (' . implode(',', $aFilter['topic_id']) . ') '; } //debug output dump($where); return $where; }