Explorar o código

Fixed:Warning

Jinhui Zhu %!s(int64=7) %!d(string=hai) anos
pai
achega
41b52de301
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
         }