Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 4948-4952 (lines=5) @@
4945
4946
        $limitCondition = null;
4947
4948
        if (isset($from) && isset($numberItems)) {
4949
            $from = intval($from);
4950
            $numberItems = intval($numberItems);
4951
            $limitCondition = "LIMIT $from, $numberItems";
4952
        }
4953
4954
        $urlId = api_get_current_access_url_id();
4955

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

@@ 3920-3924 (lines=5) @@
3917
3918
        $limitCondition = null;
3919
3920
        if (isset($from) && isset($numberItems)) {
3921
            $from = intval($from);
3922
            $numberItems = intval($numberItems);
3923
            $limitCondition = "LIMIT $from, $numberItems";
3924
        }
3925
3926
        $column = Database::escape_string($column);
3927
        $direction = in_array(strtolower($direction), array('asc', 'desc')) ? $direction : null;