main/inc/lib/course.lib.php 1 location
|
@@ 3075-3079 (lines=5) @@
|
3072 |
|
$whereConditions |
3073 |
|
$orderBy |
3074 |
|
"; |
3075 |
|
if (isset($from) && isset($limit)) { |
3076 |
|
$from = intval($from); |
3077 |
|
$limit = intval($limit); |
3078 |
|
$sql .= " LIMIT $from, $limit"; |
3079 |
|
} |
3080 |
|
|
3081 |
|
$result = Database::query($sql); |
3082 |
|
|
main/inc/lib/group_portal_manager.lib.php 1 location
|
@@ 551-555 (lines=5) @@
|
548 |
|
} |
549 |
|
|
550 |
|
$limit_text = ''; |
551 |
|
if (isset($from) && isset($limit)) { |
552 |
|
$from = intval($from); |
553 |
|
$limit = intval($limit); |
554 |
|
$limit_text = "LIMIT $from, $limit"; |
555 |
|
} |
556 |
|
|
557 |
|
if (count($relation_type) == 0) { |
558 |
|
$where_relation_condition = ''; |
main/inc/lib/usergroup.lib.php 1 location
|
@@ 1900-1904 (lines=5) @@
|
1897 |
|
} |
1898 |
|
|
1899 |
|
$limit_text = ''; |
1900 |
|
if (isset($from) && isset($limit)) { |
1901 |
|
$from = intval($from); |
1902 |
|
$limit = intval($limit); |
1903 |
|
$limit_text = "LIMIT $from, $limit"; |
1904 |
|
} |
1905 |
|
|
1906 |
|
if (count($relation_type) == 0) { |
1907 |
|
$where_relation_condition = ''; |
main/exercice/exercise.class.php 1 location
|
@@ 615-619 (lines=5) @@
|
612 |
|
|
613 |
|
$limitCondition = null; |
614 |
|
|
615 |
|
if (isset($start) && isset($limit)) { |
616 |
|
$start = intval($start); |
617 |
|
$limit = intval($limit); |
618 |
|
$limitCondition = " LIMIT $start, $limit"; |
619 |
|
} |
620 |
|
$sql .= $limitCondition; |
621 |
|
$result = Database::query($sql); |
622 |
|
$questions = array(); |
main/inc/lib/sessionmanager.lib.php 1 location
|
@@ 3331-3335 (lines=5) @@
|
3328 |
|
return $row['count']; |
3329 |
|
} |
3330 |
|
|
3331 |
|
if (isset($from) && isset($limit)) { |
3332 |
|
$from = intval($from); |
3333 |
|
$limit = intval($limit); |
3334 |
|
$sql .= " LIMIT $from, $limit"; |
3335 |
|
} |
3336 |
|
|
3337 |
|
$result = Database::query($sql); |
3338 |
|
$num_rows = Database::num_rows($result); |