正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -487,6 +487,9 @@ if (!function_exists('get_score')) { | @@ -487,6 +487,9 @@ if (!function_exists('get_score')) { | ||
487 | function get_score($type) | 487 | function get_score($type) |
488 | { | 488 | { |
489 | $number=config('site'); | 489 | $number=config('site'); |
490 | + if(empty($number[$type])){ | ||
491 | + return 0; | ||
492 | + } | ||
490 | return $number[$type]; | 493 | return $number[$type]; |
491 | } | 494 | } |
492 | 495 |
-
请 注册 或 登录 后发表评论