Browse Source

[ZF-7544] Zend_Filter_Inflector:

- fixed addFilterRule when first single static rule was set

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17704 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 years ago
parent
commit
9d847563b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      library/Zend/Filter/Inflector.php

+ 1 - 1
library/Zend/Filter/Inflector.php

@@ -379,7 +379,7 @@ class Zend_Filter_Inflector implements Zend_Filter_Interface
             $ruleSet = array($ruleSet);
         }
 
-        if (is_string($this->_rules)) {
+        if (is_string($this->_rules[$spec])) {
             $temp = $this->_rules[$spec];
             $this->_rules[$spec] = array();
             $this->_rules[$spec][] = $temp;