Code Duplication    Length = 7-7 lines in 2 locations

main/webservices/registration.soap.php 2 locations

@@ 3913-3919 (lines=7) @@
3910
            continue;
3911
        }
3912
3913
        if (empty($nolimit)) {
3914
            $date_start = "$year_start-".(($month_start < 10)?"0$month_start":$month_start)."-".(($day_start < 10)?"0$day_start":$day_start) . ' 00:00:00';
3915
            $date_end = "$year_end-".(($month_end < 10)?"0$month_end":$month_end)."-".(($day_end < 10)?"0$day_end":$day_end) . ' 23:59:59';
3916
        } else {
3917
            $date_start = "";
3918
            $date_end = "";
3919
        }
3920
3921
        if (empty($name)) {
3922
            if ($debug) {
@@ 4176-4182 (lines=7) @@
4173
            continue;
4174
        }
4175
4176
        if (empty($nolimit)) {
4177
            $date_start="$year_start-".(($month_start < 10)?"0$month_start":$month_start)."-".(($day_start < 10)?"0$day_start":$day_start);
4178
            $date_end="$year_end-".(($month_end < 10)?"0$month_end":$month_end)."-".(($day_end < 10)?"0$day_end":$day_end);
4179
        } else {
4180
            $date_start="";
4181
            $date_end="";
4182
        }
4183
        if (empty($name)) {
4184
            $results[] = 0; //SessionNameIsRequired
4185
            continue;