Code Duplication    Length = 5-5 lines in 2 locations

main/inc/lib/sessionmanager.lib.php 1 location

@@ 5353-5357 (lines=5) @@
5350
5351
        $limitCondition = null;
5352
5353
        if (isset($from) && isset($numberItems)) {
5354
            $from = intval($from);
5355
            $numberItems = intval($numberItems);
5356
            $limitCondition = "LIMIT $from, $numberItems";
5357
        }
5358
5359
        $urlId = api_get_current_access_url_id();
5360

main/inc/lib/usermanager.lib.php 1 location

@@ 4326-4330 (lines=5) @@
4323
4324
        $limitCondition = '';
4325
4326
        if (isset($from) && isset($numberItems)) {
4327
            $from = intval($from);
4328
            $numberItems = intval($numberItems);
4329
            $limitCondition = "LIMIT $from, $numberItems";
4330
        }
4331
4332
        $column = Database::escape_string($column);
4333
        $direction = in_array(strtolower($direction), array('asc', 'desc')) ? $direction : null;