Code Duplication    Length = 5-5 lines in 3 locations

Sources/Post.php 3 locations

@@ 1522-1526 (lines=5) @@
1519
		}
1520
1521
		// If drafts are enabled, then pass this off
1522
		if (!empty($modSettings['drafts_post_enabled']) && isset($_POST['save_draft']))
1523
		{
1524
			SaveDraft($post_errors);
1525
			return Post();
1526
		}
1527
1528
		// If the number of replies has changed, if the setting is enabled, go back to Post() - which handles the error.
1529
		if (isset($_POST['last_msg']) && $topic_info['id_last_msg'] > $_POST['last_msg'])
@@ 1567-1571 (lines=5) @@
1564
			unset($_POST['sticky']);
1565
1566
		// Saving your new topic as a draft first?
1567
		if (!empty($modSettings['drafts_post_enabled']) && isset($_POST['save_draft']))
1568
		{
1569
			SaveDraft($post_errors);
1570
			return Post();
1571
		}
1572
1573
		$posterIsGuest = $user_info['is_guest'];
1574
	}
@@ 1662-1666 (lines=5) @@
1659
		}
1660
1661
		// If drafts are enabled, then lets send this off to save
1662
		if (!empty($modSettings['drafts_post_enabled']) && isset($_POST['save_draft']))
1663
		{
1664
			SaveDraft($post_errors);
1665
			return Post();
1666
		}
1667
1668
		$posterIsGuest = empty($row['id_member']);
1669