From 1f922bb128eb6ea9758b7a4cd478b18df0bf0787 Mon Sep 17 00:00:00 2001
From: tianya <tianya@imcollege.cn>
Date: Thu, 20 Aug 2020 17:23:28 +0800
Subject: [PATCH] =?UTF-8?q?PHP7.X=E4=B8=8B=E4=B8=93=E9=A2=98=E6=B7=BB?=
 =?UTF-8?q?=E5=8A=A0=E5=A4=9A=E4=B8=AA=E5=86=85=E5=AE=B9=E7=9A=84=E9=94=99?=
 =?UTF-8?q?=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitignore                         | 1 +
 src/dede/inc/inc_menu.php          | 3 ++-
 src/dede/spec_add.php              | 2 +-
 src/dede/spec_edit.php             | 2 +-
 src/dede/templets/index2.htm       | 2 +-
 src/include/dedetemplate.class.php | 2 +-
 6 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/.gitignore b/.gitignore
index dd7ada3d..e2ad3f14 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,3 +23,4 @@ src/uploads/userup
 src/uploads/20*
 src/data/mysqli_error_trace.inc
 src/uploads/litimg/*
+src/special/
diff --git a/src/dede/inc/inc_menu.php b/src/dede/inc/inc_menu.php
index faa511b6..4eff8e7f 100755
--- a/src/dede/inc/inc_menu.php
+++ b/src/dede/inc/inc_menu.php
@@ -165,8 +165,9 @@ $adminMenu2
 
 <m:top item='1_10_7_' name='系统帮助' display='none'>
   <m:item name='参考文档' link='http://help.dedecms.com' rank='' target='_blank' />
-  <m:item name='意见建议反馈' link='http://site.desdev.cn/suggest/' rank='' target='_blank' />
+  <m:item name='意见建议反馈' link='https://github.com/dedetech/issues' rank='' target='_blank' />
   <m:item name='官方交流论坛' link='http://bbs.dedecms.com' rank='' target='_blank' />
+  <m:item name='Github' link='https://github.com/dedetech/' rank='' target='_blank' />
 </m:top>
 
 -----------------------------------------------
diff --git a/src/dede/spec_add.php b/src/dede/spec_add.php
index 95ef7555..4ed7d03d 100755
--- a/src/dede/spec_add.php
+++ b/src/dede/spec_add.php
@@ -113,7 +113,7 @@ else if($dopost=='save')
     }
 
     //专题节点列表
-    $arcids = '';
+    $arcids = array();
     $notelist = '';
     for($i=1; $i<=$cfg_specnote; $i++)
     {
diff --git a/src/dede/spec_edit.php b/src/dede/spec_edit.php
index 287a3dbd..89a581fb 100755
--- a/src/dede/spec_edit.php
+++ b/src/dede/spec_edit.php
@@ -169,7 +169,7 @@ else if($dopost=='save')
     }
 
     //专题节点列表
-    $arcids = '';
+    $arcids = array();
     $notelist = '';
     for($i=1;$i<=$cfg_specnote;$i++)
     {
diff --git a/src/dede/templets/index2.htm b/src/dede/templets/index2.htm
index 640b3657..b21e74d0 100755
--- a/src/dede/templets/index2.htm
+++ b/src/dede/templets/index2.htm
@@ -118,7 +118,7 @@
         <form action="action_search.php" target="main" method="post">
           <input name="keyword" type="text" value="功能搜索" onfocus="if(this.value=='功能搜索'){this.value='';}"  onblur="if(this.value==''){this.value='功能搜索';}" class="allsearch" style="width:150px;"/>
           <input name="" type="submit" value="搜索" class="np"/>
-          <a href='http://bbs.dedecms.com' target='_blank'>官方论坛</a> <a href='http://help.dedecms.com' target='_blank'>在线帮助</a>
+          <a href='http://bbs.dedecms.com' target='_blank'>官方论坛</a> <a href='https://github.com/dedetech' target='_blank'>Github</a>
         </form>
       </div>
     </div>
diff --git a/src/include/dedetemplate.class.php b/src/include/dedetemplate.class.php
index c0ae37e7..58870da2 100755
--- a/src/include/dedetemplate.class.php
+++ b/src/include/dedetemplate.class.php
@@ -635,7 +635,7 @@ class DedeTemplate
         $t = 0;
         $preTag = '';
         $tswLen = strlen($tagStartWord);
-        $cAtt->cAttributes->items = array();
+        @$cAtt->cAttributes->items = array();
         for($i=0; $i<$sourceLen; $i++)
         {
             $ttagName = '';