diff --git a/src/admin/js/indexbody.js b/src/admin/js/indexbody.js
index efd584a7..f1c99ec7 100644
--- a/src/admin/js/indexbody.js
+++ b/src/admin/js/indexbody.js
@@ -18,11 +18,4 @@ function ListAll(){
function ShowWaitDiv(){
$DE('loaddiv').style.display = 'block';
return true;
-}
-
-window.onload = function()
-{
- fetch('index_body.php?dopost=getRightSide').then(resp=>resp.text()).then((d)=>{
- $DE('listCount').innerHTML = d;
- });
-};
+}
\ No newline at end of file
diff --git a/src/admin/templets/index_body.htm b/src/admin/templets/index_body.htm
index c6606b2c..b2749fec 100644
--- a/src/admin/templets/index_body.htm
+++ b/src/admin/templets/index_body.htm
@@ -100,14 +100,6 @@ table.stattable td.today {
正在载入
-
@@ -137,42 +129,6 @@ table.stattable td.today {
-
-
-
-
-
- -2 ORDER BY arc.id DESC LIMIT 0,5";
- $arcArr = array();
- $dsql->Execute('m', $query);
- while($row = $dsql->GetArray('m'))
- {
- $arcArr[] = $row;
- }
- ?>
- 1)
- {
- foreach($arcArr as $row)
- {
- if(trim($row['editcon'])==''){
- $row['editcon'] = 'archives_edit.php';
- }
- $rowarcrank = $row['arcrank']==-1? "[未审核]":"";
- $pubdate = GetDateMk($row['pubdate']);
- echo "{$row['title']}{$rowarcrank} | {$pubdate} |
";
- }
- } else {
- ?>
- 暂无文档 |
-
-
-
-
-
diff --git a/src/system/libraries/agent.class.php b/src/system/libraries/agent.class.php
index 5c6055fc..8ae1711d 100644
--- a/src/system/libraries/agent.class.php
+++ b/src/system/libraries/agent.class.php
@@ -213,7 +213,8 @@ class Agent extends Mobile_Detect
// Check match
if ($this->match($regex, $userAgent)) {
- return $key ?: reset((array)$this->matchesArray);
+ $val = (array)$this->matchesArray;
+ return $key ?: reset($val);
}
}