Check for empty on airline id #628

This commit is contained in:
Nabeel Shahzad 2020-03-09 16:06:54 -04:00
parent 2a03d53b3f
commit 3443f6b31e

View File

@ -82,7 +82,7 @@ class AircraftImporter extends BaseImporter
*/
protected function getSubfleet($icao, $airline_id = null)
{
if ($airline_id === null) {
if (empty($airline_id)) {
$airline = Airline::first();
$airline_id = $airline->id;
}