function getWCfromDb($id) { $row = parent::getWCfromDb($id); if ($row['redirect']) { $row['is_link'] = 1; } return $row; }