Code Duplication    Length = 1-1 lines in 2 locations

install/class.update_db.php 2 locations

@@ 201-201 (lines=1) @@
198
            				// Check if we can find ICAO, else set it to GLID
199
            				$aircraft_name_split = explode(' ',$aircraft_name);
200
            				$search_more = '';
201
            				if (count($aircraft_name) > 1 && strlen($aircraft_name_split[1]) > 3) $search_more .= " AND LIKE '%".$aircraft_name_split[0]."%'";
202
            				$query_search = "SELECT * FROM aircraft WHERE type LIKE '%".$aircraft_name."%'".$search_more;
203
            				$sth_search = $Connection->db->prepare($query_search);
204
					try {
@@ 272-272 (lines=1) @@
269
            				// Check if we can find ICAO, else set it to GLID
270
            				$aircraft_name_split = explode(' ',$aircraft_name);
271
            				$search_more = '';
272
            				if (count($aircraft_name) > 1 && strlen($aircraft_name_split[1]) > 3) $search_more .= " AND LIKE '%".$aircraft_name_split[0]."%'";
273
            				$query_search = "SELECT * FROM aircraft WHERE type LIKE '%".$aircraft_name."%'".$search_more;
274
            				$sth_search = $Connection->db->prepare($query_search);
275
					try {