Code Duplication    Length = 1-3 lines in 2 locations

install/class.update_db.php 2 locations

@@ 208-210 (lines=3) @@
205
                                    		$sth_search->execute();
206
	            				$result = $sth_search->fetch(PDO::FETCH_ASSOC);
207
	            				//if (count($result) > 0) {
208
	            				if (isset($result['icao']) && $result['icao'] != '') {
209
	            				    $values['ICAOTypeCode'] = $result['icao'];
210
	            				} 
211
					} catch(PDOException $e) {
212
						return "error : ".$e->getMessage();
213
					}
@@ 278-278 (lines=1) @@
275
					try {
276
                                    		$sth_search->execute();
277
	            				$result = $sth_search->fetch(PDO::FETCH_ASSOC);
278
	            				if (isset($result['icao']) && $result['icao'] != '') $values['ICAOTypeCode'] = $result['icao'];
279
					} catch(PDOException $e) {
280
						return "error : ".$e->getMessage();
281
					}