ZF-12140: Zend_Validate NotEmpty types empty_array should be array.
Description
http://framework.zend.com/manual/en/…
empty_array: Returns FALSE when an empty array is given.
should be correct to
array: Returns FALSE when an empty array is given.
by code testing:
when i tried to using
if (Zend_Validate::is($this->view->user, 'NotEmpty', array('empty_array')))
the Zend Framework would halt by errors:
An error occurred Application error Exception information:
Message: Unknown type
if i changes the code to :
if (Zend_Validate::is($this->view->user, 'NotEmpty', array('array')))
everything should be fine.
Comments
No comments to display