Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
d72c6012
Commit
d72c6012
authored
Jun 03, 2010
by
Richard Mansfield
Browse files
MySQL fix in stats query
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
47b8cfb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/registration.php
View file @
d72c6012
...
...
@@ -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'
)
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment