Skip to content

Commit cf861b6

Browse files
authored
Merge pull request #235 from learnweb/fix/userstats_sql
Fix for userstats SQL
2 parents d55afde + 9fe6e75 commit cf861b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/tables/userstats_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private function createstudent($user) {
263263
*/
264264
private function get_rating_data() {
265265
global $DB;
266-
$sqlquery = 'SELECT (ROW_NUMBER() OVER (ORDER BY ratings.id)) AS row_num,
266+
$sqlquery = 'SELECT ROW_NUMBER() OVER (ORDER BY ratings.id) AS row_num,
267267
discuss.id AS discussid,
268268
discuss.userid AS discussuserid,
269269
posts.id AS postid,

0 commit comments

Comments
 (0)