Description

If I have a parameter in the request object that has a value of boolean false (set by a route), and I pass in a default value, the default value will always be set if the parameter is boolean false. This is because the first part of the condition in Zend_Controller_Action::_getParam() does an Equal comparison, when it should be doing an Identical comparison. Attached is a patch that correctly fixes the issue.

Comments

Posted by Ken Stanley (dohpaz) on 2009-12-26T19:43:49.000+0000

This patch changes the first part of the condition to check for whether or not to use the default value from using an Equal (==) comparison, to an Identical (===) comparison.