PHP warning

Trying to access array offset on value of type null

/home1/pushpcqz/public_html/pushpagiri.in/themes/user/views/doctor/details.php(5)

01 <section class="doctorDeatilBg">
02   <div class="container">
03     <div class="row">
04       <div class="col-md-4">
05         <h3 class="doctorDeatilHeader"><?=$details['title']?></h3>
06         <?if($details['image']==''  && $details['gender']=='f'){?>
07                 <img src="<?=Yii::app()->params['site_url']?>img/fdoctor.png" alt="<?=$details['title']?>">
08                 <? }else if($details['image']==''){?>
09                 <img src="<?=Yii::app()->params['site_url']?>img/doctor.png" alt="<?=$details['title']?>">    
10                 <?}else{?>
11                 <img src="<?=Yii::app()->request->baseUrl?>/uploads/doctors/<?=$details['image']?>" alt="">
12                 <? }?>
13 
14         </div>
15       <div class="col-md-8 doctorDivall">
16         <div id="doc_desig" class="<?php if(isset($_SESSION['color'])){ if($_SESSION['color']=='R'){?>doctorDeatilsWrapper-red<?php }else if($_SESSION['color']=='G'){?>doctorDeatilsWrapper-green<?php }else{?>doctorDeatilsWrapper <?php }}else{?>doctorDeatilsWrapper<?} ?>">
17           <div class="doctorDeatilsWrapperDiv"> <span>Designation :</span> </div>

Stack Trace

#4
+
 /home1/pushpcqz/public_html/pushpagiri.in/protected/controllers/DoctorController.php(106): CController->render("details", array("details" => null, "othdoc" => array(), "department_data" => array()))
101         }
102         $deptid = rtrim($deptid,',');
103         $sql="select dp.title as dept_title,t.* from doctors t left join dep_doctors D on D.doctor_id=t.id join departments dp on D.dep_id = dp.id  where t.status='1' and t.id <> '$id' and D.dep_id in ('$deptid')";
104         $othdoc=Yii::app()->db->createCommand($sql)->queryAll();
105         
106         $this->render("details",array('details'=>$details,'othdoc'=>$othdoc,'department_data'=>$department_data));  
107     }
108     
109     public function actionList($keyword=null,$depid=null,$docid=null)
110     {
111         $this->layout="subpage";
#14
+
 /home1/pushpcqz/public_html/pushpagiri.in/index.php(12): CApplication->run()
07 defined('YII_DEBUG') or define('YII_DEBUG',true);
08 // specify how many levels of call stack should be shown in each log message
09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 
11 require_once($yii);
12 Yii::createWebApplication($config)->run();
13 
14 
15 
16 
2024-03-19 14:45:44 Apache Yii Framework/1.1.14