Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 1036-1040 (lines=5) @@
1033
            $sql .= " ORDER BY $column $direction";
1034
        }
1035
1036
        if (!empty($start) && !empty($limit)) {
1037
            $start = intval($start);
1038
            $limit = intval($limit);
1039
            $sql .= " LIMIT $start, $limit";
1040
        }
1041
        $res = Database::query($sql);
1042
        $users = array();
1043
        while ($obj = Database::fetch_object($res)) {

main/work/work.lib.php 1 location

@@ 4521-4525 (lines=5) @@
4518
        );
4519
    } else {
4520
        $limitString = null;
4521
        if (!empty($start) && !empty($limit)) {
4522
            $start = intval($start);
4523
            $limit = intval($limit);
4524
            $limitString = " LIMIT $start, $limit";
4525
        }
4526
4527
        $orderBy = null;
4528