public function SiteAuditCheckWatchdogCount::calculateScore in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/Watchdog/Count.php \SiteAuditCheckWatchdogCount::calculateScore()
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Watchdog/ Count.php, line 61 - Contains \SiteAudit\Check\Watchdog\Count.
Class
- SiteAuditCheckWatchdogCount
- Class SiteAuditCheckWatchdogCount.
Code
public function calculateScore() {
$sql_query = 'SELECT COUNT(wid) ';
$sql_query .= 'FROM {watchdog} ';
$this->registry['count_entries'] = db_query($sql_query)
->fetchField();
if (!$this->registry['count_entries']) {
$this->abort = TRUE;
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}