Skip to content

Commit

Permalink
Fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Jul 27, 2015
1 parent a6f1bb2 commit bf539f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion statistics-airline.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function drawChart() {
print '<td><strong>'.$i.'</strong></td>';
print '<td class="logo">';
print '<a href="'.$globalURL.'/airline/'.$airline_item['airline_icao'].'"><img src="';
if ($globalIVAO && @getimagesize($globalURL.'/images/airlines/'.$airline_item['airline_icao'].'.gif'))
if (isset($globalIVAO) && $globalIVAO && (@getimagesize($globalURL.'/images/airlines/'.$airline_item['airline_icao'].'.gif') || @getimagesize('images/airlines/'.$airline_item['airline_icao'].'.gif')))
{
print $globalURL.'/images/airlines/'.$airline_item['airline_icao'].'.gif';
} elseif (@getimagesize($globalURL.'/images/airlines/'.$airline_item['airline_icao'].'.png'))
Expand Down
4 changes: 2 additions & 2 deletions table-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,12 @@
print '</td>'."\n";
}
}
if ($globalIVAO && @getimagesize('images/airlines/'.$spotter_item['airline_icao'].'.gif') || @getimagesize($globalURL.'/images/airlines/'.$spotter_item['airline_icao'].'.gif'))
if (isset($globalIVAO) && $globalIVAO && (@getimagesize('images/airlines/'.$spotter_item['airline_icao'].'.gif') || @getimagesize($globalURL.'/images/airlines/'.$spotter_item['airline_icao'].'.gif')))
{
print '<td class="logo">'."\n";
print '<a href="'.$globalURL.'/airline/'.$spotter_item['airline_icao'].'"><img src="'.$globalURL.'/images/airlines/'.$spotter_item['airline_icao'].'.gif" alt="Click to see airline information" title="Click to see airline information" /></a>'."\n";
print '</td>'."\n";
} elseif (!$globalIVAO && @getimagesize('images/airlines/'.$spotter_item['airline_icao'].'.png') || @getimagesize($globalURL.'/images/airlines/'.$spotter_item['airline_icao'].'.png'))
} elseif ((!isset($globalIVAO) || !$globalIVAO) && (@getimagesize('images/airlines/'.$spotter_item['airline_icao'].'.png') || @getimagesize($globalURL.'/images/airlines/'.$spotter_item['airline_icao'].'.png')))
{
print '<td class="logo">'."\n";
print '<a href="'.$globalURL.'/airline/'.$spotter_item['airline_icao'].'"><img src="'.$globalURL.'/images/airlines/'.$spotter_item['airline_icao'].'.png" alt="Click to see airline information" title="Click to see airline information" /></a>'."\n";
Expand Down

0 comments on commit bf539f2

Please sign in to comment.