Code Duplication    Length = 6-7 lines in 2 locations

Sources/Subs-Post.php 1 location

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

Sources/Post.php 1 location

@@ 2838-2843 (lines=6) @@
2835
		modifyPost($msgOptions, $topicOptions, $posterOptions);
2836
2837
		// If we didn't change anything this time but had before put back the old info.
2838
		if (!isset($msgOptions['modify_time']) && !empty($row['modified_time']))
2839
		{
2840
			$msgOptions['modify_time'] = $row['modified_time'];
2841
			$msgOptions['modify_name'] = $row['modified_name'];
2842
			$msgOptions['modify_reason'] = $row['modified_reason'];
2843
		}
2844
2845
		// Changing the first subject updates other subjects to 'Re: new_subject'.
2846
		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'))))