PHP notice

Trying to get property of non-object

/home/sectora70/public_html/protected/views/catalog/view.php(104)

092                                        onclick="$('#video-<?= $video->id ?>').arcticmodal()"><img
093                                                 src="<?= UPL_FR . $video->thumb ?>"><span class="play"
094                                                                                           style="display: block"></span></a>
095                                 </div>
096                             <? endforeach; ?>
097                         </div>
098                     <? endif; ?>
099 
100                 </div>
101 
102                 <? if (ips()) { ?>
103                     <div class="items-right">
104                         <div>Бренд: <b><a href="/catalog/brand/<?= $row->brand->id ?>"><?= $row->brand->name ?></a></b>
105                         </div>
106                         <div class="items-right-price-new" style="position: relative;">
107                             <div class="item-stock">
108                                 <?
109                                 $count = false;
110                                 if ($balance && $balance[0]->qt): ?>
111                                     <strong>В наличии:</strong> <?= $balance[0]->qt ?> шт.
112                                 <? else: ?>
113                                     <? foreach ($balance as $bal) {
114                                         if ($bal->qt > 0) {
115                                             $count = true;
116                                         }

Stack Trace

#4
+
 /home/sectora70/public_html/protected/controllers/CatalogController.php(370): CController->render("view", array("row" => Products, "recProducts" => array(), "sibProducts" => array(), "myMark" => null))
365             'row' => $row,
366             'recProducts' => $recProducts,
367             'sibProducts' => $sibProducts,
368             'myMark' => (!empty($myMark)) ? $myMark->mark : NULL,
369 //      'attendProducts' => Products::model()->findAllByPk(),
370         ));
371     }
372 
373     public function actionGetClearPrice()
374     {
375         $bal_id = Yii::app()->request->getParam('bal_id');
#12
+
 /home/sectora70/public_html/index.php(30): CApplication->run()
25 
26 defined('UPL_FR') or define('UPL_FR', '/uploads/');
27 defined('UPL_BK') or define('UPL_BK', __DIR__ . UPL_FR);
28 
29 require_once($yii);
30 Yii::createWebApplication($config)->run();
2024-03-28 17:17:06 LiteSpeed Yii Framework/1.1.15