Code Duplication    Length = 6-7 lines in 2 locations

Sources/Subs-Post.php 1 location

@@ 2097-2103 (lines=7) @@
2094
			$smcFunc['db_free_result']($request);
2095
		}
2096
	}
2097
	if (!empty($msgOptions['modify_time']))
2098
	{
2099
		$messages_columns['modified_time'] = $msgOptions['modify_time'];
2100
		$messages_columns['modified_name'] = $msgOptions['modify_name'];
2101
		$messages_columns['modified_reason'] = $msgOptions['modify_reason'];
2102
		$messages_columns['id_msg_modified'] = $modSettings['maxMsgID'];
2103
	}
2104
	if (isset($msgOptions['smileys_enabled']))
2105
		$messages_columns['smileys_enabled'] = empty($msgOptions['smileys_enabled']) ? 0 : 1;
2106

Sources/Post.php 1 location

@@ 2872-2877 (lines=6) @@
2869
		modifyPost($msgOptions, $topicOptions, $posterOptions);
2870
2871
		// If we didn't change anything this time but had before put back the old info.
2872
		if (!isset($msgOptions['modify_time']) && !empty($row['modified_time']))
2873
		{
2874
			$msgOptions['modify_time'] = $row['modified_time'];
2875
			$msgOptions['modify_name'] = $row['modified_name'];
2876
			$msgOptions['modify_reason'] = $row['modified_reason'];
2877
		}
2878
2879
		// Changing the first subject updates other subjects to 'Re: new_subject'.
2880
		if (isset($_POST['subject']) && isset($_REQUEST['change_all_subjects']) && $row['id_first_msg'] == $row['id_msg'] && !empty($row['num_replies']) && (allowedTo('modify_any') || ($row['id_member_started'] == $user_info['id'] && allowedTo('modify_replies'))))