lizhen_gitee hai 4 meses
pai
achega
b052270a22
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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();
     }