Error on unkown site.

This commit is contained in:
severak 2020-02-04 11:38:29 +01:00
parent 027a9fb233
commit 5995511ad2
1 changed files with 1 additions and 5 deletions

View File

@ -68,11 +68,7 @@ ORDER BY visits DESC', [$site['id']])->fetchAll();
} else {
$sites = $pdo->run('SELECT host, label, COUNT(*) AS visits, stats_public
FROM visits
INNER JOIN sites ON visits.site_id=sites.id
GROUP BY site_id
ORDER BY visits DESC');
$error = 'We do not track this site.';
}
} else {
$sites = $pdo->run('SELECT host, label, COUNT(*) AS visits, stats_public