@@ -404,17 +404,17 @@ discard block |
||
404 | 404 | } |
405 | 405 | $all = $sth->fetchAll(PDO::FETCH_ASSOC); |
406 | 406 | } else $all = array(); |
407 | - if (empty($all)) { |
|
408 | - $Spotter = new Spotter($this->db); |
|
409 | - $filters = array(); |
|
407 | + if (empty($all)) { |
|
408 | + $Spotter = new Spotter($this->db); |
|
409 | + $filters = array(); |
|
410 | 410 | $filters = array('year' => $year,'month' => $month); |
411 | - if ($filter_name != '') { |
|
412 | - $filters = array_merge($filters,$globalStatsFilters[$filter_name]); |
|
411 | + if ($filter_name != '') { |
|
412 | + $filters = array_merge($filters,$globalStatsFilters[$filter_name]); |
|
413 | 413 | } |
414 | 414 | //$all = $Spotter->countAllAirlines($limit,0,'',$filters,$year,$month); |
415 | - $all = $Spotter->countAllAirlines($limit,0,'',$filters); |
|
416 | - } |
|
417 | - return $all; |
|
415 | + $all = $Spotter->countAllAirlines($limit,0,'',$filters); |
|
416 | + } |
|
417 | + return $all; |
|
418 | 418 | } |
419 | 419 | public function countAllAircraftRegistrations($limit = true,$stats_airline = '',$filter_name = '',$year = '',$month = '') { |
420 | 420 | global $globalStatsFilters; |
@@ -1611,7 +1611,7 @@ discard block |
||
1611 | 1611 | return "error : ".$e->getMessage(); |
1612 | 1612 | } |
1613 | 1613 | } |
1614 | - /* |
|
1614 | + /* |
|
1615 | 1615 | public function getStatsSource($date,$stats_type = '') { |
1616 | 1616 | if ($stats_type == '') { |
1617 | 1617 | $query = "SELECT * FROM stats_source WHERE stats_date = :date ORDER BY source_name"; |