From 8bdfe06ddbd33e4d7cf13e67b2066b1ea8720c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Mon, 12 Feb 2018 21:36:54 +0100 Subject: [PATCH] fixed getUserCountFromLastVersion query --- www/internals/alephnoteStatistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/internals/alephnoteStatistics.php b/www/internals/alephnoteStatistics.php index 31f4e4a..7fb6749 100644 --- a/www/internals/alephnoteStatistics.php +++ b/www/internals/alephnoteStatistics.php @@ -11,7 +11,7 @@ class AlephNoteStatistics public static function getUserCountFromLastVersion() { - return Database::sql_query_num('SELECT COUNT(*) FROM an_statslog WHERE NoteCount>0 AND Version = (SELECT Version FROM an_statslog ORDER BY Version DESC LIMIT 1)'); + return Database::sql_query_num('SELECT COUNT(*) FROM an_statslog WHERE NoteCount>0 GROUP BY Version ORDER BY INET_ATON(Version) DESC LIMIT 1'); } public static function getActiveUserCount($days)