Skip to content

Commit ad8889f

Browse files
committed
Admin: fix sql query for last course access statistic report
1 parent f1ad14f commit ad8889f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/statistics.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ public static function printCourseLastVisit()
11651165
HAVING t.c_id <> ''
11661166
AND DATEDIFF( '".api_get_utc_datetime()."' , access_date ) <= ".$date_diff;
11671167
}
1168-
$sql .= ' ORDER BY `'.$columns[$column].'` '.$sql_order[$direction];
1168+
$sql .= ' ORDER BY '.$columns[$column].' '.$sql_order[$direction];
11691169
$from = ($page_nr - 1) * $per_page;
11701170
$sql .= ' LIMIT '.$from.','.$per_page;
11711171

0 commit comments

Comments
 (0)