Check for empty on airline id #628
This commit is contained in:
parent
2a03d53b3f
commit
3443f6b31e
@ -82,7 +82,7 @@ class AircraftImporter extends BaseImporter
|
|||||||
*/
|
*/
|
||||||
protected function getSubfleet($icao, $airline_id = null)
|
protected function getSubfleet($icao, $airline_id = null)
|
||||||
{
|
{
|
||||||
if ($airline_id === null) {
|
if (empty($airline_id)) {
|
||||||
$airline = Airline::first();
|
$airline = Airline::first();
|
||||||
$airline_id = $airline->id;
|
$airline_id = $airline->id;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user