<?php class kCatDBList extends kDBList { function GetWhereClause() { return $this->Special != 'showall' ? '('.TABLE_PREFIX.'CategoryItems.CategoryId = '.$this->Application->GetVar('m_cat_id').') ' : ''; } } ?>