Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Attachments.php 1 location

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

Sources/Display.php 1 location

@@ 1034-1035 (lines=2) @@
1031
			$temp = array();
1032
			while ($row = $smcFunc['db_fetch_assoc']($request))
1033
			{
1034
				if (!$row['approved'] && $modSettings['postmod_active'] && !allowedTo('approve_posts') && (!isset($all_posters[$row['id_msg']]) || $all_posters[$row['id_msg']] != $user_info['id']))
1035
					continue;
1036
1037
				$temp[$row['id_attach']] = $row;
1038
				$temp[$row['id_attach']]['topic'] = $topic;