/** * Returns an object list * Overriden to check on respective values * of limit and limit start * If limit is 0, limitstart should be reset to 0 as well * * @param string The query * @param int Offset * @param int The number of records * @return array * @access protected * @since 1.5 */ protected function _getList($query, $limitstart = 0, $limit = 0) { // check limit and lim $limitstart = $limit === 0 ? 0 : $limitstart; // do the job $result = parent::_getList($query, $limitstart, $limit); return $result; }