Code Duplication    Length = 4-4 lines in 2 locations

core/db_models/EEM_Event.model.php 2 locations

@@ 677-680 (lines=4) @@
674
            unset($where_params['Datetime.DTT_EVT_end']);
675
        }
676
        
677
        if (isset($where_params['Datetime.DTT_EVT_start'])) {
678
            $and_condition['Datetime.DTT_EVT_start'] = $where_params['Datetime.DTT_EVT_start'];
679
            unset($where_params['Datetime.DTT_EVT_start']);
680
        }
681
        
682
        //merge remaining $where params with the and conditions.
683
        $where_params['AND'] = array_merge($and_condition, $where_params);
@@ 727-730 (lines=4) @@
724
            unset($where_params['Datetime.DTT_EVT_end']);
725
        }
726
        
727
        if (isset($where_params['Datetime.DTT_EVT_start'])) {
728
            $where_params['AND']['Datetime.DTT_EVT_start'] = $where_params['Datetime.DTT_EVT_start'];
729
            unset($where_params['Datetime.DTT_EVT_start']);
730
        }
731
        
732
        $query_params[0] = $where_params;
733