PHP warning

Trying to access array offset on value of type null

/home2/sikder/public_html/ambalajobs.com/themes/yes/views/jobs/refineSearchPanel.php(50)

38 
39             <?php
40             $industry = Jobs::model()->findAll('active=1 group by industry order by id desc limit 20');
41             if (count($industry) > 0):
42                 ?>
43                 
44                 <h5 style="margin-top:25px;">By Category</h5>
45                 <div class="jobs-by-sector">
46                     <select class="industry form-control">
47                         <option value="">Select All</option>
48                         <?php
49                         $allreadyShow=array();
50                         foreach ($industry as $indus): $dataIndustry = explode(',', $data['industry']);
51                         $ind = explode(',',$indus->industry);
52                         foreach($ind as $indval):
53                             if($indval!='' && !in_array($indval, $allreadyShow)):
54                             $allreadyShow[]=$indval;
55                             ?>
56                         <option value="<?= $indval ?>" <?php if (in_array($indval, $dataIndustry)) echo 'selected="selected"'; ?>><?= Industry::model()->findByPk($indval)->name ?></option>
57                             <?php
58                             endif;
59                             endforeach;
60                         endforeach;
61                         ?>
62                     </select>

Stack Trace

#3
+
 /home2/sikder/public_html/ambalajobs.com/themes/yes/views/jobs/jobByCompany.php(10): CController->renderPartial("refineSearchPanel")
05         </div>
06     </div>
07 </div>
08 <div class="row">
09     <aside class="col-md-3">
10         <?php $this->renderPartial('refineSearchPanel') ?>
11         
12     <div class="row marginBottom20">
13             <div class="col-md-12">
14             
15 
#8
+
 /home2/sikder/public_html/ambalajobs.com/protected/controllers/JobsController.php(664): CController->render()
659             $this->breadcrumbs = array(
660                 'Jobs' => array('//jobs'),
661                 $data['company_name'],
662             );
663 
664             $this->render('jobByCompany', array(
665                 'model' => $model,
666                 'data' => $data,
667             ));
668             //this for subscribe form
669             $this->renderPartial('subscribeSearch', array(), false, true);
#23
+
 /home2/sikder/public_html/ambalajobs.com/index.php(22): CApplication->run()
17 // specify how many levels of call stack should be shown in each log message
18 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
19 
20 require_once($yii);
21 
22 Yii::createWebApplication($config)->run();
2024-03-28 18:05:13 Apache Yii Framework/1.1.15