|
@@ 2623-2625 (lines=3) @@
|
| 2620 |
|
|
| 2621 |
|
// Compose a filter based on optional learning paths list given |
| 2622 |
|
$condition_lp = ''; |
| 2623 |
|
if (count($lp_ids) > 0) { |
| 2624 |
|
$condition_lp = " AND id IN(".implode(',', $lp_ids).") "; |
| 2625 |
|
} |
| 2626 |
|
|
| 2627 |
|
// Compose a filter based on optional session id |
| 2628 |
|
$session_id = intval($session_id); |
|
@@ 3070-3072 (lines=3) @@
|
| 3067 |
|
|
| 3068 |
|
// Compose a filter based on optional learning paths list given |
| 3069 |
|
$condition_lp = ''; |
| 3070 |
|
if (count($lp_ids) > 0) { |
| 3071 |
|
$condition_lp = " AND id IN(".implode(',', $lp_ids).") "; |
| 3072 |
|
} |
| 3073 |
|
|
| 3074 |
|
// Check the real number of LPs corresponding to the filter in the |
| 3075 |
|
// database (and if no list was given, get them all) |