ErrorException [ Fatal Error ]: Call to a member function as_array() on a non-object

APPPATH\classes\controller\blockheader.php [ 31 ]

26 		$the->themeurl = url::base().Kohana::$themes_url.$themes.'/';
27 		
28 		if(!empty($pcid))
29 		{
30 			$query = '?pcid='.$pcid;
31 			$arrSubNav = $oSite->getSidebarNav($siteid,$query)->as_array();	
32 			foreach($arrSubNav as $k=>$v)
33 			{
34 				if($v['parentid']==1)
35 					$pcid=str_replace('?pcid=','',$v['url']);
36 			}
  1. {PHP internal call} » Kohana_Core::shutdown_handler()

Environment