ZF-8587: Zend_View_Helper_FormRadio problem to value check

Description

Problem Zend_View_Helper_FormRadio, line 152


in_array($opt_value, $value)

change for


in_array($opt_value, $value, true)

Comments

Patch of the test unit.

Before values get to this point they are all being converted to string so adding "true" wont help.

Here is what I think:

<?php foreach($value as $k => $v) { if(is_numeric($v)) { $value[$k] = intval($v); } } if (in_array($opt_value, $value, true)) { $checked = ' checked="checked"'; } ?>

Patch for FormRadio.php