Fix group by .

1.10.x
jmontoya 9 years ago
parent 1c366ce8e0
commit 9111c61ce6
  1. 6
      main/inc/lib/tracking.lib.php

@ -2186,11 +2186,13 @@ class Tracking
" lp_view.lp_id IN(" . implode(', ', $filteredLP) . ") "
];
$groupBy = 'GROUP BY lp_id';
if (is_array($studentId)) {
$studentId = array_map('intval', $studentId);
$conditions[] = " lp_view.user_id IN (" . implode(',', $studentId) . ") ";
$groupBy = 'GROUP BY lp_id';
} else {
$studentId = intval($studentId);
$conditions[] = " lp_view.user_id = '$studentId' ";
@ -2205,8 +2207,6 @@ class Tracking
}
}
}
$groupBy = 'GROUP BY user_id';
}
if (!empty($sessionId)) {

Loading…
Cancel
Save