|
@@ 2665-2670 (lines=6) @@
|
| 2662 |
|
} |
| 2663 |
|
|
| 2664 |
|
// prepare filter on users |
| 2665 |
|
if (is_array($student_id)) { |
| 2666 |
|
array_walk($student_id, 'intval'); |
| 2667 |
|
$condition_user1 = " AND user_id IN (".implode(',', $student_id).") "; |
| 2668 |
|
} else { |
| 2669 |
|
$condition_user1 = " AND user_id = $student_id "; |
| 2670 |
|
} |
| 2671 |
|
|
| 2672 |
|
if ($count_row_lp > 0 && !empty($student_id)) { |
| 2673 |
|
// Getting latest LP result for a student |
|
@@ 3011-3016 (lines=6) @@
|
| 3008 |
|
$conditions[] = " session_id = $session_id "; |
| 3009 |
|
} |
| 3010 |
|
|
| 3011 |
|
if (is_array($student_id)) { |
| 3012 |
|
array_walk($student_id, 'intval'); |
| 3013 |
|
$conditions[] = " lp_view.user_id IN (".implode(',', $student_id).") "; |
| 3014 |
|
} else { |
| 3015 |
|
$conditions[] = " lp_view.user_id = $student_id "; |
| 3016 |
|
} |
| 3017 |
|
|
| 3018 |
|
$conditionsToString = implode('AND ', $conditions); |
| 3019 |
|
$sql = "SELECT |