ZF-3083: Zend_View_Helper_PartialLoop throws exceptions when given an empty array
Description
This if statement in partialLoop() evaluates to true when given an empty array. This should not be the case, as exceptions will be thrown when module name is given.
Starts on line 57:
if ((null == $model) && (null !== $module)) {
$model = $module;
$module = null;
}
Should read:
if ((null === $model) && (null !== $module)) {
$model = $module;
$module = null;
}
Notice the triple ===.
Comments
Posted by Wil Sinclair (wil) on 2008-04-18T13:16:14.000+0000
Please evaluate and categorize as necessary.
Posted by Matthew Weier O'Phinney (matthew) on 2008-04-22T12:16:37.000+0000
Scheduling for next mini release.
Posted by Matthew Weier O'Phinney (matthew) on 2008-05-05T10:35:53.000+0000
Test added in trunk and 1.5 release branch; unable to reproduce, but changes for other bugs may have fixed this previously. (Commit as of r9374)