瀏覽代碼

Fixed:Warning

Jinhui Zhu 7 年之前
父節點
當前提交
41b52de301
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Base/Response.php

+ 1 - 1
src/Base/Response.php

@@ -147,7 +147,7 @@ class Response
      */
     public function needRender()
     {
-        if(is_array($this->data['body']) && isset($this->data['body']['tpl']))
+        if(isset($this->data['body']) && is_array($this->data['body']) && isset($this->data['body']['tpl']))
         {
             return true;
         }