PHP warning

Undefined array key 2

/home/3/s/stormkast/www/protected/modules/sc/views/default/roundNoBoogieClub.php(224)

212     echo "<th></th>";
213     echo "</tr>";
214 
215 
216 echo "<tr>";
217         
218         echo "<td></td>";
219         echo "<td></td>";
220         echo "<td></td>";
221         echo "<td style='text-align:right'> Antall </td>";
222         
223         for( $i =1; $i <= $maxMax; $i++ ){
224             echo "<td> " . $hullAnt[$i] . " </td>";
225         }        
226         echo "<td></td>";
227 echo "</tr>";        
228 
229 echo "<tr>";        
230         echo "<td></td>";
231         echo "<td></td>";
232         echo "<td></td>";
233         echo "<td style='text-align:right'> % </td>";
234         
235         for( $i =1; $i <= $maxMax; $i++ ){
236             echo "<td> " . round( ($hullAnt[$i] / count($rows))*100., 0) . " %</td>";

Stack Trace

#3
+
 /home/3/s/stormkast/www/protected/modules/sc/views/default/runde.php(292): CController->renderPartial("roundNoBoogieClub", array("what" => "6", "year" => "2013", "round" => "9", "field" => "x", ...))
287     
288         
289     
290     <div id="tabs-17">
291 <?php
292     $this->renderPartial( "roundNoBoogieClub", array(
293         "what" => $what,
294         "year" => $year,
295         "round" => $round,
296         "field" => "x",
297         "title" => "Sammenlagt Grisecup",
#8
+
 /home/3/s/stormkast/www/protected/modules/sc/controllers/DefaultController.php(25): CController->render("runde", array("what" => "6", "year" => "2013", "round" => "9"))
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-28 19:05:20 Apache/2.4.41 Yii Framework/1.1.27