Jump to content

phpvms5


Footes

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

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...