function correctValue($value) { // bc if ($this->viasql) { return parent::correctValue($value); } if ($value == 'category_id') { if ($this->getValue('startpage') != 1) { $value = 're_id'; } else { $value = 'article_id'; } } return $value; }