main/inc/lib/course.lib.php 1 location
|
@@ 1479-1483 (lines=5) @@
|
| 1476 |
|
} |
| 1477 |
|
} |
| 1478 |
|
|
| 1479 |
|
if (!empty($userIdList)) { |
| 1480 |
|
$userIdList = array_map('intval', $userIdList); |
| 1481 |
|
$userIdList = implode('","', $userIdList); |
| 1482 |
|
$sql .= ' AND user.id IN ("' . $userIdList . '")'; |
| 1483 |
|
} |
| 1484 |
|
|
| 1485 |
|
if (isset($filterByActive)) { |
| 1486 |
|
$filterByActive = intval($filterByActive); |
main/work/work.lib.php 1 location
|
@@ 464-471 (lines=8) @@
|
| 461 |
|
$groupId = intval($groupId); |
| 462 |
|
$studentCondition = null; |
| 463 |
|
|
| 464 |
|
if (!empty($onlyUserList)) { |
| 465 |
|
$onlyUserList = array_map('intval', $onlyUserList); |
| 466 |
|
$studentCondition = "AND u.user_id IN ('".implode("', '", $onlyUserList)."') "; |
| 467 |
|
} else { |
| 468 |
|
if (empty($userId)) { |
| 469 |
|
return 0; |
| 470 |
|
} |
| 471 |
|
} |
| 472 |
|
|
| 473 |
|
$groupIid = 0; |
| 474 |
|
if ($groupId) { |
src/Chamilo/CourseBundle/Component/CourseCopy/CourseBuilder.php 1 location
|
@@ 1174-1177 (lines=4) @@
|
| 1171 |
|
WHERE c_id = '.$courseId.' AND (session_id = 0 OR session_id IS NULL)'; |
| 1172 |
|
} |
| 1173 |
|
|
| 1174 |
|
if (!empty($id_list)) { |
| 1175 |
|
$id_list = array_map('intval', $id_list); |
| 1176 |
|
$sql .= " AND id IN (".implode(', ', $id_list).") "; |
| 1177 |
|
} |
| 1178 |
|
|
| 1179 |
|
$db_result = Database::query($sql); |
| 1180 |
|
if ($db_result) { |