CPC900 Posted January 17, 2010 Report Posted January 17, 2010 I get this error when I click on the link to the flight/: Warning: Invalid argument supplied for foreach() in /home/woodsdom/public_html/EPA/lib/skins/epa/schedule_details.tpl on line 24 Linke 24 is this: foreach($scheddata as $month=>$count) or the full section for you: <?php $data = array(); $labels = array(); foreach($scheddata as $month=>$count) { $data[] = $count; $labels[] = $month; } $chart = new ChartGraph('gchart', 'ls', 600, 150); $chart->AddData($data, $labels); echo '<img align="center" src="'.$chart->GenerateGraph().'" />'; ?> Quote
Administrators Nabeel Posted January 18, 2010 Administrators Report Posted January 18, 2010 That template has been updated, check the changelog Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.