From 36d40e9d8a85399f8309ddc0d8be4e790dda456b Mon Sep 17 00:00:00 2001
From: root <admin@example.com>
Date: Thu, 27 Oct 2022 10:33:46 +0800
Subject: [PATCH] 修改添加方式 包修改

---
 application/common.php | 3 +++
 1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/application/common.php b/application/common.php
index 46c7cb6..5c56503 100644
--- a/application/common.php
+++ b/application/common.php
@@ -487,6 +487,9 @@ if (!function_exists('get_score')) {
     function get_score($type)
     {
       $number=config('site');
+      if(empty($number[$type])){
+          return 0;
+      }
       return $number[$type];
     }
 
--
libgit2 0.24.0