summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2020-07-12 18:22:21 +0800
committerGitHub <noreply@github.com>2020-07-12 18:22:21 +0800
commit2b60b4d02aa0e0a8a675fa952d1f8068e8e319e1 (patch)
tree78ed233a8ec708521407dc39b11572927b5641ca
parent741636de6704df74f9057e6da00346c520cadc61 (diff)
:bug: Fix: 解决随机颜文字可能报错的问题
-rw-r--r--includes/footer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/footer.php b/includes/footer.php
index e9e0c08..312249e 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -10,7 +10,7 @@
echo $this->options->build_time?"记录已延续了 <span id=\"build-time\"></span>":"";
if($faces=$this->options->anime_face){
$faces = explode("&&",$faces);
- $faces = "<span class=\"anime-face\">".$faces[mt_rand(0,count($faces))]."</span>";
+ $faces = "<span class=\"anime-face\">".$faces[mt_rand(0,count($faces)-1)]."</span>";
}
if($faces && $this->options->build_time)echo $faces;
?></p>
@@ -66,4 +66,4 @@ Theme Miracles by
Repo: https://github.com/BigCoke233/miracles
---> \ No newline at end of file
+-->