Thank you for the reply, Dave
Yes, the pilots are assigned to the hub EDDK, also in the pilots table of the SQL database. And the qualifier is correct in my realschedulelite_index.tpl. But it doesn't work I tried the following in the realschedulelite_airport_details.tpl:
//If pilot is logged in check their location
//If the pilot is at this airport allow them to bid on flights
if(Auth::LoggedIn() == true)
{
$location = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, '');
$location = RealScheduleLiteData::get_pilot_location(Auth::$userinfo->pilotid);
if(!$location == $name->hub)
{
echo '<td><a id="'.$flight->id.'" class="addbid"
href="'.actionurl('/schedules/addbid').'">Add to Bid</a></td>';
}
else if($location->arricao == $name->icao)
{
echo '<td><a id="'.$flight->id.'" class="addbid"
href="'.actionurl('/schedules/addbid').'">Add to Bid</a></td>';
}
else
{
echo '<td>You are not at this airport</td>';
}
}
That way it works fine for new and also existed pilots At least for the moment, I'll continue testing...