Merge branch 'wip-MDL-46545-master' of git://github.com/marinaglancy/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2014-08-18 19:40:13 +02:00
commit 64140f93ec

View File

@ -701,7 +701,7 @@ function stats_cron_weekly() {
SELECT 'logins', timeend, courseid, userid, SUM(statsreads)
FROM (
SELECT $nextstartweek AS timeend, courseid, statsreads
SELECT $nextstartweek AS timeend, courseid, userid, statsreads
FROM {stats_user_daily} sd
WHERE stattype = 'logins' AND $stattimesql
) inline_view
@ -843,7 +843,7 @@ function stats_cron_monthly() {
SELECT 'logins', timeend, courseid, userid, SUM(statsreads)
FROM (
SELECT $nextstartmonth AS timeend, courseid, statsreads
SELECT $nextstartmonth AS timeend, courseid, userid, statsreads
FROM {stats_user_daily} sd
WHERE stattype = 'logins' AND $stattimesql
) inline_view