Code Duplication    Length = 9-9 lines in 2 locations

Sources/Search.php 2 locations

@@ 1148-1156 (lines=9) @@
1145
				}
1146
1147
				// If there's data to be inserted for non-IGNORE databases do it here!
1148
				if (!empty($inserts))
1149
				{
1150
					$smcFunc['db_insert']('',
1151
						'{db_prefix}log_search_results',
1152
						array('id_search' => 'int', 'id_topic' => 'int', 'relevance' => 'int', 'id_msg' => 'int', 'num_matches' => 'int'),
1153
						$inserts,
1154
						array('id_search', 'id_topic')
1155
					);
1156
				}
1157
1158
				$_SESSION['search_cache']['num_results'] = $numSubjectResults;
1159
			}
@@ 1670-1678 (lines=9) @@
1667
						$smcFunc['db_free_result']($ignoreRequest);
1668
1669
						// Now put them in!
1670
						if (!empty($inserts))
1671
						{
1672
							$smcFunc['db_insert']('',
1673
								'{db_prefix}log_search_results',
1674
								array('id_search' => 'int', 'id_topic' => 'int', 'relevance' => 'float', 'id_msg' => 'int', 'num_matches' => 'int'),
1675
								$inserts,
1676
								array('id_search', 'id_topic')
1677
							);
1678
						}
1679
						$_SESSION['search_cache']['num_results'] += count($inserts);
1680
					}
1681
					else