PHP notice

Undefined variable: model55

/var/www/vhosts/znuweb/protected/controllers/PgController.php(115)

103 {
104 $newsyear='news_content_archive';
105     $t='Archive';
106 $model = NewsContentArchive::model()->findByAttributes(array('sid'=>$id));
107 }
108         
109             
110             
111             
112             
113             
114             
115         if ($model55!=NULL)
116         {
117     /*   if(  (isset(Yii::app()->request->cookies['lang']))  and  ( (Yii::app()->request->cookies['lang']->value=='fa') OR  (Yii::app()->request->cookies['lang']->value=='en') ) )
118           { 
119           $language = Yii::app()->request->cookies['lang']->value;
120           }
121             else
122           { 
123           Yii::app()->request->cookies['lang'] = new CHttpCookie('lang',$qjrnl->lang1);
124           $language = $qjrnl->lang1;
125           }
126 */
127         if( $jrnl555=='news' OR $jrnl=='znuportal' OR ($jrnl!='news' AND $jrnl!='znuportal' AND ($model->jid==$id2 or $model->jid2==$id2 or $model->j->parent_idjrnl==$id2))    )

Stack Trace

#13
+
 /var/www/vhosts/znuweb/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2025-02-07 19:29:14 Apache Yii Framework/1.1.14