PHP warning

Trying to access array offset on value of type bool

/home3/palmoild/public_html/wfitv/protected/modules/user/controllers/ChannelsController.php(155)

143             if($id=='c'){
144                 $catid=$TmpArr[sizeof($TmpArr)-2];
145                 $this->pageTitle = 'wfiTV.com - Watch Free Internet Television';
146                 $this->pageDescription = 'Watch Free Internet TV for free';
147                 $this->pageKeywords = 'on demand, vod, internet television, tv online, live tv, free internet tv, streaming tv, watch tv online, watch tv, tv, tv live, tv internet, free online tv, internet television, free tv online, online television, broadband tv, free tv, online tv, wfitv, webtv, web tv, satellite, cable, satellite tv, player, media, live tv, live television, television, stream, streaming, webstream, guide, broadcast, broadcasting, webcasting, webcast, webcasts';
148                 $this->Categories($catid);
149                 exit();
150             }
151         }else{
152             $this->redirect('user/site/error');
153         }
154         $channelDetails = $model->getChannelDetails($id);
155         $country_id = $channelDetails['country_id'];
156         $category_id = $channelDetails['category_id'];
157         
158         $channel = new Channels;
159         $country = new Country;
160         $channelDet = $channel->getChannelName($id);
161         $chName = $channelDet['name'];
162         $chDescription = $channelDet['description'];
163         $channelCountry = $country->getCountryName($country_id);
164         $this->pageTitle='Watch '.$chName.' from '.$channelCountry;
165         $this->pageDescription = $chDescription;
166         $this->pageKeywords = $chName.', internet television from '.$channelCountry.', tv online, live tv from '.$channelCountry.', free internet tv from '.$channelCountry.', streaming tv, watch tv online, watch tv, tv, tv live, tv internet, free online tv, internet television, free tv online, online television from '.$channelCountry.', broadband tv, free tv, online tv, wfitv, webtv, web tv, satellite, cable, satellite tv, player, media, live tv, live television, television, stream, streaming, webstream, guide, broadcast, broadcasting, webcasting, webcast, webcasts';
167         

Stack Trace

#12
+
 /home3/palmoild/public_html/wfitv/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2024-03-28 08:02:59 Apache Yii Framework/1.1.10