Skip to content

Commit

Permalink
Fix #425
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Nov 3, 2018
1 parent 77bf2e3 commit e609189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion require/class.Spotter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2687,7 +2687,7 @@ public function getRouteInfo($callsign)

$row = $sth->fetch(PDO::FETCH_ASSOC);
$sth->closeCursor();
if (count($row) > 0) {
if (is_array($row)) {
return $row;
} else return array();
}
Expand Down

1 comment on commit e609189

@a1270
Copy link

@a1270 a1270 commented on e609189 Jan 24, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems this issue also exist on lines 11915 and 11946

Warning: count(): Parameter must be an array or an object that implements Countable in /usr/share/webapps/FlightAirMap/require/class.Spotter.php on line 11946

This is using php 7.3.1.

Please sign in to comment.