Browse Source

Fixed:Warning

Jinhui Zhu 7 năm trước cách đây
mục cha
commit
41b52de301
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
         }