Index: trunk/kernel/parser.php
===================================================================
diff -u -r2729 -r2731
--- trunk/kernel/parser.php (.../parser.php) (revision 2729)
+++ trunk/kernel/parser.php (.../parser.php) (revision 2731)
@@ -459,7 +459,7 @@
@attrib: _Required:bool: If set, In-Portal requires this field have a value when submitting
@attrib: _Default:string: Default value for radiobutton if not checked
@attrib: _Custom:bool: If set, handled as a custom field
- @example:
+ @example:
*/
function m_form_radio($attribs = array())
{
@@ -478,6 +478,10 @@
else
{
$value = $FormValues[$form][$field];
+ if (is_array($value))
+ {
+ $value = $value['value'];
+ }
if( !isset($value) && getArrayValue($attribs,'_default') ) $value = $val;
if($value==$val) $checked=' CHECKED';
}