Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 4954-4958 (lines=5) @@
4951
4952
        $limitCondition = null;
4953
4954
        if (isset($from) && isset($numberItems)) {
4955
            $from = intval($from);
4956
            $numberItems = intval($numberItems);
4957
            $limitCondition = "LIMIT $from, $numberItems";
4958
        }
4959
4960
        $urlId = api_get_current_access_url_id();
4961

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

@@ 3933-3937 (lines=5) @@
3930
3931
        $limitCondition = null;
3932
3933
        if (isset($from) && isset($numberItems)) {
3934
            $from = intval($from);
3935
            $numberItems = intval($numberItems);
3936
            $limitCondition = "LIMIT $from, $numberItems";
3937
        }
3938
3939
        $column = Database::escape_string($column);
3940
        $direction = in_array(strtolower($direction), array('asc', 'desc')) ? $direction : null;