main/work/work.lib.php 1 location
|
@@ 454-461 (lines=8) @@
|
| 451 |
|
$groupId = intval($groupId); |
| 452 |
|
$studentCondition = null; |
| 453 |
|
|
| 454 |
|
if (!empty($onlyUserList)) { |
| 455 |
|
$onlyUserList = array_map('intval', $onlyUserList); |
| 456 |
|
$studentCondition = "AND u.user_id IN ('".implode("', '", $onlyUserList)."') "; |
| 457 |
|
} else { |
| 458 |
|
if (empty($userId)) { |
| 459 |
|
return 0; |
| 460 |
|
} |
| 461 |
|
} |
| 462 |
|
|
| 463 |
|
$groupIid = 0; |
| 464 |
|
if ($groupId) { |
main/inc/lib/course.lib.php 1 location
|
@@ 1470-1474 (lines=5) @@
|
| 1467 |
|
} |
| 1468 |
|
} |
| 1469 |
|
|
| 1470 |
|
if (!empty($userIdList)) { |
| 1471 |
|
$userIdList = array_map('intval', $userIdList); |
| 1472 |
|
$userIdList = implode('","', $userIdList); |
| 1473 |
|
$sql .= ' AND user.id IN ("' . $userIdList . '")'; |
| 1474 |
|
} |
| 1475 |
|
|
| 1476 |
|
if (isset($filterByActive)) { |
| 1477 |
|
$filterByActive = intval($filterByActive); |
src/Chamilo/CourseBundle/Component/CourseCopy/CourseBuilder.php 1 location
|
@@ 1177-1180 (lines=4) @@
|
| 1174 |
|
WHERE c_id = '.$courseId.' AND (session_id = 0 OR session_id IS NULL)'; |
| 1175 |
|
} |
| 1176 |
|
|
| 1177 |
|
if (!empty($id_list)) { |
| 1178 |
|
$id_list = array_map('intval', $id_list); |
| 1179 |
|
$sql .= " AND id IN (".implode(', ', $id_list).") "; |
| 1180 |
|
} |
| 1181 |
|
|
| 1182 |
|
$db_result = Database::query($sql); |
| 1183 |
|
if ($db_result) { |