OK...
<?php
$shown = array();
$staff = StatsData::UsersOnline();
foreach($staff as $pilot)
{
if(PilotGroups::group_has_perm(PilotGroups::getUserGroups($pilot->pilotid), ACCESS_ADMIN))
{
if(in_array($pilot->pilotid, $shown))
continue;
else
$shown[] = $pilot->pilotid;
?>
<a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid). ' ' .$pilot->firstname . ' ' . $pilot->lastname?></a><br />
<?php
}
}
?>
How to insert a condition if ... "no staff online"? thanks for any response...