PHP warning

Invalid argument supplied for foreach()

/var/www/html/protected/controllers/SiteController.php(735)

723                                     'contentLang'=>$contentLang));
724     }
725     
726     public function actionLogin(){
727         $this->renderPartial('popup-login');
728     }
729     public function actionForgot(){
730         $this->renderPartial('popup-forgot');
731     }
732     public function actionPopupYafTeam($id){
733         $yafteam=Yafteam::model()->findByAttributes(array('yafteam_id'=>$id));
734         $yafteamLang = array();
735         foreach($yafteam['yafteamLangs'] as $yafteamLanguage){
736             if($yafteamLanguage['language_id'] == $this->lang['language_id']){
737                 $yafteamLang = $yafteamLanguage; 
738                 break;
739             }
740         }
741         $this->renderPartial('popup-yaf-team',
742                             array('yafteam'=>$yafteam,
743                                 'yafteamLang'=>$yafteamLang));
744     }
745     public function actionTerms(){
746         $pageid = 9;
747         // page settings

Stack Trace

#9
+
 /var/www/html/index.php(27): CApplication->run()
22 
23 
24 Yii::import('ext.yiiexcel.YiiExcel', true);
25 Yii::registerAutoloader(array('YiiExcel', 'autoload'), true);
26 
27 $app->run();
28 //Yii::createWebApplication($config)->run();
29 
30 ?>
2024-03-29 06:48:12 Apache/2.4.53 (Ubuntu) Yii Framework/1.1.14