Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 5154-5158 (lines=5) @@
5151
5152
        $limitCondition = null;
5153
5154
        if (isset($from) && isset($numberItems)) {
5155
            $from = intval($from);
5156
            $numberItems = intval($numberItems);
5157
            $limitCondition = "LIMIT $from, $numberItems";
5158
        }
5159
5160
        $urlId = api_get_current_access_url_id();
5161

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

@@ 4233-4237 (lines=5) @@
4230
4231
        $limitCondition = '';
4232
4233
        if (isset($from) && isset($numberItems)) {
4234
            $from = intval($from);
4235
            $numberItems = intval($numberItems);
4236
            $limitCondition = "LIMIT $from, $numberItems";
4237
        }
4238
4239
        $column = Database::escape_string($column);
4240
        $direction = in_array(strtolower($direction), array('asc', 'desc')) ? $direction : null;