Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 5176-5180 (lines=5) @@
5173
5174
        $limitCondition = null;
5175
5176
        if (isset($from) && isset($numberItems)) {
5177
            $from = intval($from);
5178
            $numberItems = intval($numberItems);
5179
            $limitCondition = "LIMIT $from, $numberItems";
5180
        }
5181
5182
        $urlId = api_get_current_access_url_id();
5183

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

@@ 4265-4269 (lines=5) @@
4262
4263
        $limitCondition = '';
4264
4265
        if (isset($from) && isset($numberItems)) {
4266
            $from = intval($from);
4267
            $numberItems = intval($numberItems);
4268
            $limitCondition = "LIMIT $from, $numberItems";
4269
        }
4270
4271
        $column = Database::escape_string($column);
4272
        $direction = in_array(strtolower($direction), array('asc', 'desc')) ? $direction : null;