Code Duplication    Length = 5-5 lines in 2 locations

Sources/Drafts.php 2 locations

@@ 160-164 (lines=5) @@
157
	}
158
159
	// if we were called from the autosave function, send something back
160
	if (!empty($id_draft) && isset($_REQUEST['xml']) && (!in_array('session_timeout', $post_errors)))
161
	{
162
		$context['draft_saved_on'] = time();
163
		XmlDraft($id_draft);
164
	}
165
166
	return true;
167
}
@@ 289-293 (lines=5) @@
286
	}
287
288
	// if we were called from the autosave function, send something back
289
	if (!empty($id_pm_draft) && isset($_REQUEST['xml']) && !in_array('session_timeout', $post_errors))
290
	{
291
		$context['draft_saved_on'] = time();
292
		XmlDraft($id_pm_draft);
293
	}
294
295
	return;
296
}