Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Attachments.php 1 location

@@ 1090-1091 (lines=2) @@
1087
		$temp = array();
1088
		while ($row = $smcFunc['db_fetch_assoc']($request))
1089
		{
1090
			if (!$row['approved'] && $modSettings['postmod_active'] && !allowedTo('approve_posts') && (!isset($all_posters[$row['id_msg']]) || $all_posters[$row['id_msg']] != $user_info['id']))
1091
				continue;
1092
1093
			$temp[$row['id_attach']] = $row;
1094
		}

Sources/Display.php 1 location

@@ 1164-1165 (lines=2) @@
1161
			$temp = array();
1162
			while ($row = $smcFunc['db_fetch_assoc']($request))
1163
			{
1164
				if (!$row['approved'] && $modSettings['postmod_active'] && !allowedTo('approve_posts') && (!isset($all_posters[$row['id_msg']]) || $all_posters[$row['id_msg']] != $user_info['id']))
1165
					continue;
1166
1167
				$temp[$row['id_attach']] = $row;
1168
				$temp[$row['id_attach']]['topic'] = $topic;