main/exercise/exercise.class.php 1 location
|
@@ 603-607 (lines=5) @@
|
600 |
|
|
601 |
|
$limitCondition = null; |
602 |
|
|
603 |
|
if (isset($start) && isset($limit)) { |
604 |
|
$start = intval($start); |
605 |
|
$limit = intval($limit); |
606 |
|
$limitCondition = " LIMIT $start, $limit"; |
607 |
|
} |
608 |
|
$sql .= $limitCondition; |
609 |
|
$result = Database::query($sql); |
610 |
|
$questions = array(); |
main/inc/lib/usermanager.lib.php 1 location
|
@@ 4267-4271 (lines=5) @@
|
4264 |
|
|
4265 |
|
$limitCondition = ''; |
4266 |
|
|
4267 |
|
if (isset($from) && isset($numberItems)) { |
4268 |
|
$from = intval($from); |
4269 |
|
$numberItems = intval($numberItems); |
4270 |
|
$limitCondition = "LIMIT $from, $numberItems"; |
4271 |
|
} |
4272 |
|
|
4273 |
|
$column = Database::escape_string($column); |
4274 |
|
$direction = in_array(strtolower($direction), array('asc', 'desc')) ? $direction : null; |
main/inc/lib/sessionmanager.lib.php 1 location
|
@@ 5259-5263 (lines=5) @@
|
5256 |
|
|
5257 |
|
$limitCondition = null; |
5258 |
|
|
5259 |
|
if (isset($from) && isset($numberItems)) { |
5260 |
|
$from = intval($from); |
5261 |
|
$numberItems = intval($numberItems); |
5262 |
|
$limitCondition = "LIMIT $from, $numberItems"; |
5263 |
|
} |
5264 |
|
|
5265 |
|
$urlId = api_get_current_access_url_id(); |
5266 |
|
|