소스 검색

Fixed:Warning

Jinhui Zhu 8 년 전
부모
커밋
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;
         }