Code Duplication    Length = 8-8 lines in 2 locations

Sources/Post.php 2 locations

@@ 1512-1519 (lines=8) @@
1509
		}
1510
1511
		// So you wanna (un)sticky this...let's see.
1512
		if (isset($_POST['sticky']) && ($_POST['sticky'] == $topic_info['is_sticky'] || !allowedTo('make_sticky')))
1513
			unset($_POST['sticky']);
1514
		elseif (isset($_POST['sticky']))
1515
		{
1516
			// Did someone (un)sticky this while you were posting?
1517
			if (isset($_POST['already_sticky']) && $_POST['already_sticky'] != $topic_info['is_sticky'])
1518
				$post_errors[] = 'topic_' . (empty($topic_info['is_sticky']) ? 'un' : '') . 'sticky';
1519
		}
1520
1521
		// If drafts are enabled, then pass this off
1522
		if (!empty($modSettings['drafts_post_enabled']) && isset($_POST['save_draft']))
@@ 1627-1634 (lines=8) @@
1624
		}
1625
1626
		// Change the sticky status of this topic?
1627
		if (isset($_POST['sticky']) && (!allowedTo('make_sticky') || $_POST['sticky'] == $topic_info['is_sticky']))
1628
			unset($_POST['sticky']);
1629
		elseif (isset($_POST['sticky']))
1630
		{
1631
			// Did someone (un)sticky this while you were posting?
1632
			if (isset($_POST['already_sticky']) && $_POST['already_sticky'] != $topic_info['is_sticky'])
1633
				$post_errors[] = 'topic_' . (empty($topic_info['locked']) ? 'un' : '') . 'stickied';
1634
		}
1635
1636
		if ($row['id_member'] == $user_info['id'] && !allowedTo('modify_any'))
1637
		{