Code Duplication    Length = 7-7 lines in 2 locations

main/inc/lib/usergroup.lib.php 2 locations

@@ 305-311 (lines=7) @@
302
        }
303
304
305
        if (isset($options['LIMIT'])) {
306
            $limits = explode(',', $options['LIMIT']);
307
            $limits = array_map('intval', $limits);
308
            if (isset($limits[0]) && isset($limits[1])) {
309
                $sql .= " LIMIT ".$limits[0].', '.$limits[1];
310
            }
311
        }
312
313
        $result = Database::query($sql);
314
        $array = Database::store_result($result, 'ASSOC');
@@ 373-379 (lines=7) @@
370
            $sql .= " AND access_url_id = $urlId";
371
        }
372
373
        if (isset($options['LIMIT'])) {
374
            $limits = explode(',', $options['LIMIT']);
375
            $limits = array_map('intval', $limits);
376
            if (isset($limits[0]) && isset($limits[1])) {
377
                $sql .= " LIMIT ".$limits[0].', '.$limits[1];
378
            }
379
        }
380
        $result = Database::query($sql);
381
        $array = Database::store_result($result, 'ASSOC');
382