PHP notice

Trying to access array offset on value of type bool

/var/www/html/html/protected/views/site/baca.php(4)

01 <?php
02 
03 $query = query('SELECT * FROM berita WHERE id_berita="' . xss($_GET['id']) . '"')->queryRow();
04 $GLOBALS['title'] = strip_tags($query['judul']);
05 $GLOBALS['link'] =  createUrl('image_thumbnail/baca_berita?f=' . $query['id_berita']);
06 ?>
07 
08 <div class="about-right mb-90">
09     <div class="about-img">
10         <img src="<?= createUrl('images/berita?w=500&h=400&f=' . $query['id_berita']) ?>" alt="">
11     </div>
12     <div class="section-tittle mb-30 pt-30">
13         <h3><?= xss($query['judul']) ?></h3>
14     </div>
15     <div class="about-prea">
16         <?= xss($query['isi']) ?>

Stack Trace

#4
+
 /var/www/html/html/protected/controllers/SiteController.php(54): CController->render("baca")
49         }
50     }
51 
52     function actionBaca($id, $label) {
53         $this->layout = "//layouts/layout-baca";
54         $this->render('baca');
55     }
56 
57     function actionTags_berita() {
58         $this->layout = "//layouts/layout-baca";
59         $this->render('tags_berita');
#14
+
 /var/www/html/html/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
14 
2024-03-28 17:59:22 Apache/2.4.41 (Ubuntu) Yii Framework/1.1.21