Code Duplication    Length = 5-5 lines in 2 locations

Sources/MessageIndex.php 2 locations

@@ 996-1000 (lines=5) @@
993
		);
994
		$stickyCacheBoards = array();
995
		$stickyCacheStatus = array();
996
		while ($row = $smcFunc['db_fetch_assoc']($request))
997
		{
998
			$stickyCacheBoards[$row['id_topic']] = $row['id_board'];
999
			$stickyCacheStatus[$row['id_topic']] = empty($row['is_sticky']);
1000
		}
1001
		$smcFunc['db_free_result']($request);
1002
	}
1003
@@ 1242-1246 (lines=5) @@
1239
				)
1240
			);
1241
			$lockCacheBoards = array();
1242
			while ($row = $smcFunc['db_fetch_assoc']($result))
1243
			{
1244
				$lockStatus[$row['id_topic']] = empty($row['locked']);
1245
				$lockCacheBoards[$row['id_topic']] = $row['id_board'];
1246
			}
1247
			$smcFunc['db_free_result']($result);
1248
		}
1249