浏览代码

ZF-10526: is_a() fix

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23096 44c647ce-9c0f-0410-b52a-842ac1e357ba
cadorn 15 年之前
父节点
当前提交
fd2064c570
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      library/Zend/Wildfire/Channel/HttpHeaders.php

+ 1 - 2
library/Zend/Wildfire/Channel/HttpHeaders.php

@@ -270,8 +270,7 @@ class Zend_Wildfire_Channel_HttpHeaders extends Zend_Controller_Plugin_Abstract
             return true;
         }
 
-        // use is_a() instead of 'instanceof' to avoid having to load the class
-        if (!is_a($this->getRequest(), 'Zend_Controller_Request_Http')) {
+        if (!($this->getRequest() instanceof Zend_Controller_Request_Http)) {
             return false;
         }