소스 검색

Fixes #595 - Zend_Form: Removing annoying warning.

Closes #596
frank 10 년 전
부모
커밋
c25909f33b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      library/Zend/Form.php

+ 1 - 1
library/Zend/Form.php

@@ -1295,7 +1295,7 @@ class Zend_Form implements Iterator, Countable, Zend_Validate_Interface
             if (($belongsTo = $element->getBelongsTo()) !== $eBelongTo) {
                 $check = $this->_dissolveArrayValue($defaults, $belongsTo);
             }
-            if (array_key_exists($name, $check)) {
+            if (array_key_exists($name, (array)$check)) {
                 $this->setDefault($name, $check[$name]);
                 $defaults = $this->_dissolveArrayUnsetKey($defaults, $belongsTo, $name);
             }