Code Duplication    Length = 5-5 lines in 2 locations

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

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

main/work/work.lib.php 1 location

@@ 4550-4554 (lines=5) @@
4547
        );
4548
    } else {
4549
        $limitString = null;
4550
        if (!empty($start) && !empty($limit)) {
4551
            $start = intval($start);
4552
            $limit = intval($limit);
4553
            $limitString = " LIMIT $start, $limit";
4554
        }
4555
4556
        $orderBy = null;
4557