From dd7e334259553cf6ec9fd07172799b4f805ba83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 3 Feb 2018 16:31:22 +0100 Subject: [PATCH] fix table name --- www/internals/updateslog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/internals/updateslog.php b/www/internals/updateslog.php index 1a30516..184068b 100644 --- a/www/internals/updateslog.php +++ b/www/internals/updateslog.php @@ -25,7 +25,7 @@ class UpdatesLog public static function listProgramsInformation() { Database::connect(); - return Database::sql_query_assoc('SELECT programname AS name, Count(*) as count_total, MAX(date) AS last_query, (SELECT COUNT(*) FROM UpdatesLog AS u1 WHERE u1.programname=u0.programname AND NOW() - INTERVAL 7 DAY < u1.date) AS count_week FROM UpdatesLog AS u0 GROUP BY programname'); + return Database::sql_query_assoc('SELECT programname AS name, Count(*) as count_total, MAX(date) AS last_query, (SELECT COUNT(*) FROM updateslog AS u1 WHERE u1.programname=u0.programname AND NOW() - INTERVAL 7 DAY < u1.date) AS count_week FROM updateslog AS u0 GROUP BY programname'); } public static function getEntries($name, $limit)