NOTICE: Undefined offset: 0 in /usr/local/nginx/html/brick4/protected/controller/InstructionController.php on line 47

477.      $msg "ERROR";
478.      if($errno == E_WARNING)$msg "WARNING";
479.      if($errno == E_NOTICE)$msg "NOTICE";
480.      if($errno == E_STRICT)$msg "STRICT";
481.      if($errno == 8192)$msg "DEPRECATED";
482.      err("$msg$errstr in $errfile on line $errline");
483.  }
484.  function err($msg){
485.      $msg htmlspecialchars($msg);
486.      $traces debug_backtrace();
487.      if(!empty($GLOBALS['err_handler'])){
42.      foreach ($r_brand_o as $value) {
43.        $r_brand[$value["id"]]=$value;
44.      }
45.      
46.      foreach ($r_set["setnumber"] as &$value) {
47.        $value["brand_logo"] = $r_brand[$value["brand"]]["logo"];
48.        $value["brand_title"] = $r_brand[$value["brand"]]["title"];
49.        /*$r_myrate = $rate->find( array("setnumberid" => $value["id"], "userid" => $_SESSION["uid"], "state" => 1) );
50.        if( $r_myrate ) {
51.          $value["myrate"] = $r_myrate;
52.        }*/
71.  }
72.  if(!is_available_classname($__controller))_err_router("Err: Controller '$controller_name' is not correct!");
73.  if(!class_exists($controller_nametrue))_err_router("Err: Controller '$controller_name' is not exists!");
74.  if(!method_exists($controller_name$action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
75.  $controller_obj = new $controller_name();
76.  $controller_obj->$action_name();
77.  if($controller_obj->_auto_display){
78.      $auto_tpl_name = (empty($__module) ? '' $__module.DS).$__controller.'_'.$__action.'.html';
79.      if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
80.  }
81.  function url($c 'main'$a 'index'$param = array()){
1.  <?php
2.  include("301.inc.php");
3.  session_start();
4.  define('APP_DIR'realpath('./'));
5.  require(APP_DIR.'/protected/lib/speed.php');