Commit d72c6012 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

MySQL fix in stats query


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 47b8cfb1
......@@ -412,7 +412,7 @@ function user_stats_table($limit, $offset) {
$userdata = get_records_sql_array(
"SELECT ctime, type, \"value\", $day AS date
FROM {site_data}
WHERE type IN (?,?) AND ctime >= ? AND ctime < (date(?) + (INTERVAL $dayinterval))
WHERE type IN (?,?) AND ctime >= ? AND ctime < (date(?) + INTERVAL $dayinterval)
ORDER BY type = ? DESC, ctime DESC",
array('user-count-daily', 'loggedin-users-daily', $daterange->mindate, $daterange->maxdate, 'user-count-daily')
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment