Jump to content
Sign in to follow this  
Footes

phpvms5

Recommended Posts

At present I am playing safe with installing phpvms 5. I have a warning on the home screen which reads Warning: Invalid argument supplied for foreach() in /var/www/......../core/templates/frontpage_recentpilots.php on line 3. Does anybody have any ideas how to rctify this please.

 

regards

 

Footes

Share this post


Link to post
Share on other sites

Sorry for the belated reply but work etc. The line reads:

<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
<?php
foreach($pilot_list as $pilot) {
?>
    <p>
        <a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>">
            <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid).' '.$pilot->firstname.' '.$pilot->lastname ?>
        </a>
    </p>
<?php
}
?>

that is the whole code with what I think is line 3 underlined in bold.

regards

footes

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×