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
|
@@ 4249-4253 (lines=5) @@
|
| 4246 |
|
|
| 4247 |
|
$limitCondition = ''; |
| 4248 |
|
|
| 4249 |
|
if (isset($from) && isset($numberItems)) { |
| 4250 |
|
$from = intval($from); |
| 4251 |
|
$numberItems = intval($numberItems); |
| 4252 |
|
$limitCondition = "LIMIT $from, $numberItems"; |
| 4253 |
|
} |
| 4254 |
|
|
| 4255 |
|
$column = Database::escape_string($column); |
| 4256 |
|
$direction = in_array(strtolower($direction), array('asc', 'desc')) ? $direction : null; |
main/inc/lib/sessionmanager.lib.php 1 location
|
@@ 5240-5244 (lines=5) @@
|
| 5237 |
|
|
| 5238 |
|
$limitCondition = null; |
| 5239 |
|
|
| 5240 |
|
if (isset($from) && isset($numberItems)) { |
| 5241 |
|
$from = intval($from); |
| 5242 |
|
$numberItems = intval($numberItems); |
| 5243 |
|
$limitCondition = "LIMIT $from, $numberItems"; |
| 5244 |
|
} |
| 5245 |
|
|
| 5246 |
|
$urlId = api_get_current_access_url_id(); |
| 5247 |
|
|