Code Duplication    Length = 3-4 lines in 2 locations

programs/search.php 2 locations

@@ 163-165 (lines=3) @@
160
                $this->res->from = $begin;
161
            }
162
    
163
            if ('0000-00-00' !== $end = $datePicker->getISODate($f->param('datee', null))) {
164
                $this->res->to = $this->addOneDay($end);
165
            }
166
        }
167
        
168
        if (1 === (int) bab_rp('searchtype')) {
@@ 169-172 (lines=4) @@
166
        }
167
        
168
        if (1 === (int) bab_rp('searchtype')) {
169
            if ('0000-00-00' !== $date = $datePicker->getISODate($f->param('date', null))) {
170
                $this->res->from = $date;
171
                $this->res->to = $this->addOneDay($date);
172
            }
173
        }
174
175
        $this->res->rewind();