PHP warning

Attempt to read property "result" on bool

/home/3/s/stormkast/www/protected/modules/sc/views/default/roundScores.php(42)

30 }
31 </style>        
32         ";
33     
34 
35     echo "<table id='{$tableId}' class='tablesorter'  border=0 style='border-collapse: collapse' >";
36     echo "<thead>";
37     echo "<tr>";
38     echo "<th></th>";
39     echo "<th>Namn</th>";
40 
41     $result = reset($results);
42     $holes = $result->result->results;
43     $numHoles = 0;
44     $holeNames = array();
45     foreach ($holes as $holeNum => $hole) {
46         $numHoles++;
47 
48         $holeNames[$holeNum] = $hole->hole->namn;
49 
50         echo "<th style='text-align:center' title='{$hole->hole->namn}'>{$numHoles}</th>";
51 
52 
53 //        if ($holeNum == 8) {
54 //            echo "<td></td>";

Stack Trace

#3
+
 /home/3/s/stormkast/www/protected/modules/sc/views/default/runde.php(176): CController->renderPartial("roundScores", array("what" => "6", "year" => "2013", "round" => "14"))
171     </ul>
172 
173 
174     <div id="tabs-0">
175         <?php
176         $this->renderPartial( "roundScores", array(
177         "what" => $what,
178         "year" => $year,
179         "round" => $round,
180 
181         ) );
#8
+
 /home/3/s/stormkast/www/protected/modules/sc/controllers/DefaultController.php(25): CController->render("runde", array("what" => "6", "year" => "2013", "round" => "14"))
20         $this->render('scAdmin');
21     }
22 
23 
24     public function actionRunde($what = 2, $year, $round) {
25         $this->render('runde', array( "what" => $what, "year" => $year, "round" => $round ) );
26     }
27     
28     public function actionStats() {
29         $this->render('stats', array() );
30     }
#18
+
 /home/3/s/stormkast/www/index.php(17): CApplication->run()
12          ini_set('post_max_size', '23M');
13         ini_set('upload_max_filesize', '23M');
14         
15 
16 require_once($yii);
17 Yii::createWebApplication($config)->run();
2024-03-29 00:18:40 Apache/2.4.41 Yii Framework/1.1.27