Browse Source

协议文章

lizhen_gitee 4 tháng trước cách đây
mục cha
commit
b052270a22
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      application/index/controller/Index.php

+ 3 - 0
application/index/controller/Index.php

@@ -52,6 +52,9 @@ class Index extends Controller
             exit;
         }
         $content = Db::name('basedata')->where('key',$key)->find();
+        if(!$content){
+            exit;
+        }
         $this->assign('content',$content['content']);
         return $this->fetch();
     }