PHP notice

Undefined offset: 2

/www/godata.hk/protected/views/default/list.php(146)

134         $body=preg_replace("/\'/is","",$body);
135         return $body;
136     }
137  require('/www/godata.hk/public.php');
138  $type="godatahk"; 
139  $hotkey = hotkey($type); ?>
140           <?php
141                         for($n=count($hotkey)-1; $n>=0; $n--){
142                             
143                             $tmp = explode("\t", rawurldecode($hotkey[$n]));
144                             
145                             ?>
146 <li> <a href="/<? echo areplace(str_replace('+',' ',$tmp[2]));?>-<? echo $tmp[0];?>/" style="font-size:13px;"><?=str_replace('+',' ',$tmp[1])?> </a></li>
147       <?    }
148                     ?>
149                           </ul>
150     </div>
151 
152     
153 
154 </div>
155 <div class="banner"><script src="http://www.hongkongcompanylist.com/js/725x90.js" type="text/javascript"></script>
156 </div>
157 </div>
158 </div>

Stack Trace

#4
+
 /www/godata.hk/protected/controllers/DefaultController.php(92): CController->render("list", array("companies" => array(Company, Company, Company, Company, ...), "pages" => CPagination))
87         $data = array(
88             'companies' => $companies,
89             'pages' => $pages,
90         );
91 
92         $this->render('list',$data);
93     }/*}}}*/
94 
95     public function actionReport()/*{{{*/
96     {
97         $data = array();
#12
+
 /www/godata.hk/index.php(15): CApplication->run()
10 defined('YII_DEBUG') or define('YII_DEBUG',true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2024-03-19 07:24:33 nginx/1.10.0 Yii Framework/1.1.14