public function countDisplayErrors() { if ($GLOBALS['cfg']['SendErrorReports'] != 'never') { return $this->countErrors(); } else { return $this->countUserErrors(); } }