Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 5464-5468 (lines=5) @@
5461
5462
        $limitCondition = null;
5463
5464
        if (isset($from) && isset($numberItems)) {
5465
            $from = intval($from);
5466
            $numberItems = intval($numberItems);
5467
            $limitCondition = "LIMIT $from, $numberItems";
5468
        }
5469
5470
        $urlId = api_get_current_access_url_id();
5471

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

@@ 4342-4346 (lines=5) @@
4339
4340
        $limitCondition = '';
4341
4342
        if (isset($from) && isset($numberItems)) {
4343
            $from = intval($from);
4344
            $numberItems = intval($numberItems);
4345
            $limitCondition = "LIMIT $from, $numberItems";
4346
        }
4347
4348
        $column = Database::escape_string($column);
4349
        $direction = in_array(strtolower($direction), array('asc', 'desc')) ? $direction : null;