main/inc/lib/sessionmanager.lib.php 1 location
|
@@ 5121-5125 (lines=5) @@
|
5118 |
|
|
5119 |
|
$limitCondition = null; |
5120 |
|
|
5121 |
|
if (isset($from) && isset($numberItems)) { |
5122 |
|
$from = intval($from); |
5123 |
|
$numberItems = intval($numberItems); |
5124 |
|
$limitCondition = "LIMIT $from, $numberItems"; |
5125 |
|
} |
5126 |
|
|
5127 |
|
$urlId = api_get_current_access_url_id(); |
5128 |
|
|
main/exercise/exercise.class.php 1 location
|
@@ 602-606 (lines=5) @@
|
599 |
|
|
600 |
|
$limitCondition = null; |
601 |
|
|
602 |
|
if (isset($start) && isset($limit)) { |
603 |
|
$start = intval($start); |
604 |
|
$limit = intval($limit); |
605 |
|
$limitCondition = " LIMIT $start, $limit"; |
606 |
|
} |
607 |
|
$sql .= $limitCondition; |
608 |
|
$result = Database::query($sql); |
609 |
|
$questions = array(); |
main/inc/lib/usermanager.lib.php 1 location
|
@@ 4216-4220 (lines=5) @@
|
4213 |
|
|
4214 |
|
$limitCondition = ''; |
4215 |
|
|
4216 |
|
if (isset($from) && isset($numberItems)) { |
4217 |
|
$from = intval($from); |
4218 |
|
$numberItems = intval($numberItems); |
4219 |
|
$limitCondition = "LIMIT $from, $numberItems"; |
4220 |
|
} |
4221 |
|
|
4222 |
|
$column = Database::escape_string($column); |
4223 |
|
$direction = in_array(strtolower($direction), array('asc', 'desc')) ? $direction : null; |