Code Duplication    Length = 1-3 lines in 2 locations

install/class.update_db.php 2 locations

@@ 283-285 (lines=3) @@
280
                                    		$sth_search->execute();
281
	            				$result = $sth_search->fetch(PDO::FETCH_ASSOC);
282
	            				//if (count($result) > 0) {
283
	            				if (isset($result['icao']) && $result['icao'] != '') {
284
	            				    $values['ICAOTypeCode'] = $result['icao'];
285
	            				} 
286
					} catch(PDOException $e) {
287
						return "error : ".$e->getMessage();
288
					}
@@ 353-353 (lines=1) @@
350
					try {
351
                                    		$sth_search->execute();
352
	            				$result = $sth_search->fetch(PDO::FETCH_ASSOC);
353
	            				if (isset($result['icao']) && $result['icao'] != '') $values['ICAOTypeCode'] = $result['icao'];
354
					} catch(PDOException $e) {
355
						return "error : ".$e->getMessage();
356
					}