PHP warning

Undefined variable $national_check

/opt/bitnami/apache/htdocs/protected/modules/main/controllers/DefaultController.php(1285)

1273             if($model_name::model()->cache(604800)->exists($cri2))
1274             {
1275                 $mark_check=true;
1276             }
1277             else if($model_name::model()->cache(604800)->exists($cri))
1278             {
1279                 $felix_check=true;
1280             }
1281         }
1282         
1283         
1284         
1285         if(!empty($info) &&  ($felix_check==true || $mark_check==true || $national_check==true))
1286           {
1287             
1288                 if ($felix_check==true)
1289                 {
1290                     $list = $model_name::model()->cache(604800)->find($cri);
1291                     $main_desc="";
1292                    
1293                    
1294                 }
1295                 else 
1296                 {
1297                     $list = $model_name::model()->find($cri2);

Stack Trace

#7
+
 /opt/bitnami/apache/htdocs/index.php(51): CApplication->run()
46 
47 //    }
48 
49 //    PHPExcel_Shared_String::buildCharacterSets();
50 
51 $app->run();
2024-03-19 09:08:23 Apache Yii Framework/1.1.23