Seditio Source
Root |
./othercms/xenForo 2.2.8/src/XF/Repository/ErrorLog.php
<?php

namespace XF\Repository;

use
XF\Mvc\Entity\Repository;

class
ErrorLog extends Repository
{
    public function
clearErrorLog()
    {
       
$this->db()->emptyTable('xf_error_log');
    }

    public function
hasErrorsInLog()
    {
       
$hasErrors = $this->db()->fetchOne('
            SELECT error_id
            FROM xf_error_log
            LIMIT 1
        '
);

        return (bool)
$hasErrors;
    }
}