hi all.
im getting this error on my page
PHP-Error : Invalid argument supplied for foreach() [file: /home/httpd/vhosts/digitalgenius.com.au/include/gsExtension/Menu.php, line: 69]
this is around line 69.
function getMenu()
{
$this->_loadTemplates( 'menu' );
$menu = $this->_table->GetCondTuple( 'cms_menu', array( 'fk_ParentID' => 0 ), 'Order by Order_' );
$i = 0;
foreach( $menu as $val )
{
$page = $this->_table->GetCondTuple( 'cms_pages', array( 'PageID' => $val['fk_PageID'] ) );
$menu[$i++]['Page'] = $page[0]['Request'];
}
$this->_tmpl->addRows( 'menu', $menu );
return $this->_tmpl->getParsedTemplate( 'menu' );
}
please help i didnt build the script but i had to move it to a different server and now it dosent work.
cheers aron.