PHP warning

Trying to access array offset on value of type bool

/home3/palmoild/public_html/wfitv/protected/modules/user/models/Country.php(92)

080         $criteria->order = 'country ASC';
081         return new CActiveDataProvider(get_class($this), array(
082             'criteria'=>$criteria,'pagination' => array('pageSize'=>1000),
083         ));
084     }
085     public function getCountryName($cntId)
086     {
087         $country = Yii::app()->db->createCommand()
088         ->select('country')
089            ->from('country')
090         ->where('id=:id', array(':id'=>$cntId))
091         ->queryRow();
092         return $country['country'];
093     }
094     public function getAllcountries()
095     {
096         $country = Yii::app()->db->createCommand()
097         ->selectDistinct('cn.id,cn.country,cn.country_flag')
098            ->from('country cn')
099         ->join('channels ch', 'cn.id=ch.country_id')
100         ->order('cn.country')
101         ->queryAll();
102         return $country;
103     }
104     public function getCountry($id)

Stack Trace

#0
+
 /home3/palmoild/public_html/wfitv/protected/modules/user/controllers/ChannelsController.php(163): Country->getCountryName(0)
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         
168         $dataProvider=$model->search();
#13
+
 /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-29 00:56:27 Apache Yii Framework/1.1.10