cvs: pear /HTML_QuickForm/QuickForm radio.php

From: Date: Wed, 05 Jun 2002 00:01:01 +0000
Subject: cvs: pear /HTML_QuickForm/QuickForm radio.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4413@lists.php.net to get a copy of this message
jrust Tue Jun 4 20:01:01 2002 EDT Modified files: /pear/HTML_QuickForm/QuickForm radio.php Log: Fixed problem where the checked value was not being unset, causing setConstant not to work. Index: pear/HTML_QuickForm/QuickForm/radio.php diff -u pear/HTML_QuickForm/QuickForm/radio.php:1.4 pear/HTML_QuickForm/QuickForm/radio.php:1.5 --- pear/HTML_QuickForm/QuickForm/radio.php:1.4 Wed May 15 04:16:46 2002 +++ pear/HTML_QuickForm/QuickForm/radio.php Tue Jun 4 20:01:00 2002 @@ -17,7 +17,7 @@ // | Bertrand Mansion <bmansion@mamasam.com> | // +----------------------------------------------------------------------+ // -// $Id: radio.php,v 1.4 2002/05/15 08:16:46 mansion Exp $ +// $Id: radio.php,v 1.5 2002/06/05 00:01:00 jrust Exp $ require_once("HTML/QuickForm/input.php"); @@ -73,6 +73,7 @@ $this->setType('radio'); $this->_text = $text; $vars = array_merge($GLOBALS['HTTP_GET_VARS'], $GLOBALS['HTTP_POST_VARS']); + $vars = HTML_QuickForm::_formizeArray($vars); if (isset($vars[$this->getName()]) && $vars[$this->getName()] == $this->getValue()) { $this->setChecked(true); } @@ -95,7 +96,7 @@ if (!$checked) { $this->removeAttribute('checked'); } else { - $this->updateAttributes(array('checked')); + $this->updateAttributes(array('checked'=>'checked')); } } //end func setChecked @@ -237,4 +238,4 @@ // }}} } //end class HTML_QuickForm_radio -?> \ No newline at end of file +?>

« previous php.pear.cvs (#4413) next »