Code Duplication    Length = 12-13 lines in 2 locations

calendar/inc/class.calendar_uiforms.inc.php 2 locations

@@ 2893-2904 (lines=12) @@
2890
			$response->call('egw.message',  implode('<br />', $message));
2891
		}
2892
		if($event['id'] != $eventId ) $this->update_client($_eventId);
2893
		if ($status_reset_to_unknown)
2894
		{
2895
			foreach((array)$event['participants'] as $uid => $status)
2896
			{
2897
				if ($uid[0] != 'c' && $uid[0] != 'e' && $uid != $this->bo->user)
2898
				{
2899
					calendar_so::split_status($status,$q,$r);
2900
					$status = calendar_so::combine_status('U',$q,$r);
2901
					$this->bo->set_status($event['id'], $uid, $status, 0, true);
2902
				}
2903
			}
2904
		}
2905
	}
2906
2907
	/**
@@ 932-944 (lines=13) @@
929
				}
930
931
				$message = lang('Event saved');
932
				if ($status_reset_to_unknown)
933
				{
934
					foreach((array)$event['participants'] as $uid => $status)
935
					{
936
						if ($uid[0] != 'c' && $uid[0] != 'e' && $uid != $this->bo->user)
937
						{
938
							calendar_so::split_status($status,$q,$r);
939
							$status = calendar_so::combine_status('U',$q,$r);
940
							$this->bo->set_status($event['id'], $uid, $status, 0, true);
941
						}
942
					}
943
					$message .= lang(', stati of participants reset');
944
				}
945
946
				$response = Api\Json\Response::get();
947
				if($response && $update_type != 'delete')