Code Duplication    Length = 4-4 lines in 2 locations

mod/event_calendar/models/model.php 1 location

@@ 161-164 (lines=4) @@
158
	$e->contact_checkbox = get_input('contact_checkbox');
159
160
	// sanity check
161
	if ($e->schedule_type == 'fixed' && $e->real_end_time <= $e->start_date) {
162
		register_error(elgg_echo('event_calander:end_before_start:error'));
163
		return false;
164
	}
165
166
	if ($e->teleconference_radio == 'no'){
167
		$e->teleconference = '';

mod/gc_mobile_api/models/event.php 1 location

@@ 648-651 (lines=4) @@
645
	 $e->room = $room;
646
647
	 // sanity check
648
	 if ($e->schedule_type == 'fixed' && $e->real_end_time <= $e->start_date) {
649
		 register_error(elgg_echo('event_calander:end_before_start:error'));
650
		 return "error 1";
651
	 }
652
653
	 if ($e->teleconference_radio == 'no'){
654
		 $e->teleconference = '';