NOTICE: Undefined index: fans_count in /www/wwwroot/test.com/protected/controller/pc/MainController.php on line 3250

519.      $msg "ERROR";
520.      if($errno == E_WARNING)$msg "WARNING";
521.      if($errno == E_NOTICE)$msg "NOTICE";
522.      if($errno == E_STRICT)$msg "STRICT";
523.      if($errno == 8192)$msg "DEPRECATED";
524.      err("$msg$errstr in $errfile on line $errline");
525.  }
526.  function err($msg){
527.      $msg htmlspecialchars($msg);
528.      $traces debug_backtrace();
529.      if(!empty($GLOBALS['err_handler'])){
3245.              // 格式化数字
3246.              $record["views"] = format_number($record["views"]);
3247.              $record["dialogue_count"] = format_number($record["dialogue_count"]);
3248.              $record["user_nums"] = format_number($record["user_nums"]);
3249.              $record["likes"] = format_number($record["likes"]);
3250.              $record["fans_count"] = format_number($record["fans_count"]);
3251.              
3252.              // 添加评分信息
3253.              $record["rating"] = $this->generateRating();
3254.              
3255.              $processedRecords[] = $record;
2859.              // 获取相关推荐数据
2860.              $this->related_articles $this->get_related_data("article"$record["category_name"], 5$record["id"]);
2861.              $this->display("pc/detail_article.html");
2862.          }else if($record["content_type"] == "gzh"){
2863.              // 获取相关推荐数据
2864.              $this->related_officials $this->get_related_data("gzh"$record["category_name"], 5$record["id"]);
2865.              $this->display("pc/detail_official.html");
2866.          }else if($record["content_type"] == "xcx"){
2867.              // 获取相关推荐数据
2868.              $this->related_miniprograms $this->get_related_data("xcx"$record["category_name"], 5$record["id"]);
2869.              $this->display("pc/detail_miniprogram.html");
91.      exit;
92.  };
93.  if(!method_exists($controller_name$action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
94. 
95.  $controller_obj = new $controller_name();
96.  $controller_obj->$action_name();
97. 
98.  if($controller_obj->_auto_display){
99.      $auto_tpl_name = (empty($__module) ? '' $__module.DS).$__controller.'_'.$__action.'.html';
100.      if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
101.  }
3.  header('Access-Control-Allow-Origin: *');
4.  header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
5.  header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With');
6.  define('APP_DIR'realpath('./'));
7.  define("APP_PATH",dirname(__FILE__));
8.  require(APP_DIR.'/protected/lib/speed.php');