소스 검색

协议文章

lizhen_gitee 4 달 전
부모
커밋
b052270a22
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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();
     }