mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Fix bug 1717 : SQLite: access failure on Admin > Tools > History
hour function doesn't exists git-svn-id: http://piwigo.org/svn/trunk@6463 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+5
-2
@@ -116,14 +116,17 @@ check_status(ACCESS_ADMINISTRATOR);
|
||||
$query = '
|
||||
SELECT
|
||||
date,
|
||||
HOUR(time) AS hour,
|
||||
hour(time) AS hour,
|
||||
MAX(id) AS max_id,
|
||||
COUNT(*) AS nb_pages
|
||||
FROM '.HISTORY_TABLE.'
|
||||
WHERE summarized = \'false\'
|
||||
GROUP BY
|
||||
date,
|
||||
hour
|
||||
ORDER BY
|
||||
date ASC,
|
||||
HOUR(time) ASC
|
||||
hour ASC
|
||||
;';
|
||||
$result = pwg_query($query);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user