Code Duplication    Length = 1-1 lines in 2 locations

install/class.update_db.php 2 locations

@@ 276-276 (lines=1) @@
273
            				// Check if we can find ICAO, else set it to GLID
274
            				$aircraft_name_split = explode(' ',$aircraft_name);
275
            				$search_more = '';
276
            				if (count($aircraft_name) > 1 && strlen($aircraft_name_split[1]) > 3) $search_more .= " AND LIKE '%".$aircraft_name_split[0]."%'";
277
            				$query_search = "SELECT * FROM aircraft WHERE type LIKE '%".$aircraft_name."%'".$search_more;
278
            				$sth_search = $Connection->db->prepare($query_search);
279
					try {
@@ 347-347 (lines=1) @@
344
            				// Check if we can find ICAO, else set it to GLID
345
            				$aircraft_name_split = explode(' ',$aircraft_name);
346
            				$search_more = '';
347
            				if (count($aircraft_name) > 1 && strlen($aircraft_name_split[1]) > 3) $search_more .= " AND LIKE '%".$aircraft_name_split[0]."%'";
348
            				$query_search = "SELECT * FROM aircraft WHERE type LIKE '%".$aircraft_name."%'".$search_more;
349
            				$sth_search = $Connection->db->prepare($query_search);
350
					try {