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

@@ 542-545 (lines=4) @@
539
	 $e->room = $room;
540
541
	 // sanity check
542
	 if ($e->schedule_type == 'fixed' && $e->real_end_time <= $e->start_date) {
543
		 register_error(elgg_echo('event_calander:end_before_start:error'));
544
		 return "error 1";
545
	 }
546
547
	 if ($e->teleconference_radio == 'no'){
548
		 $e->teleconference = '';