diff --git a/require/class.Spotter.php b/require/class.Spotter.php index c4cc10d2..77f0bcd2 100644 --- a/require/class.Spotter.php +++ b/require/class.Spotter.php @@ -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(); }