cvs: pear /HTML_QuickForm/QuickForm advcheckbox.php
| From: | Jason Rust | Date: | Mon, 21 Apr 2003 15:26:45 +0000 |
| Subject: | cvs: pear /HTML_QuickForm/QuickForm advcheckbox.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-10002@lists.php.net to get a copy of this message | ||
jrust Mon Apr 21 11:26:45 2003 EDT
Modified files:
/pear/HTML_QuickForm/QuickForm advcheckbox.php
Log:
Allow setValues() to take any sort of value besides an array
Index: pear/HTML_QuickForm/QuickForm/advcheckbox.php
diff -u pear/HTML_QuickForm/QuickForm/advcheckbox.php:1.5
pear/HTML_QuickForm/QuickForm/advcheckbox.php:1.6
--- pear/HTML_QuickForm/QuickForm/advcheckbox.php:1.5 Thu Apr 17 12:36:23 2003
+++ pear/HTML_QuickForm/QuickForm/advcheckbox.php Mon Apr 21 11:26:45 2003
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: advcheckbox.php,v 1.5 2003/04/17 16:36:23 jrust Exp $
+// $Id: advcheckbox.php,v 1.6 2003/04/21 15:26:45 jrust Exp $
require_once('HTML/QuickForm/checkbox.php');
@@ -153,7 +153,7 @@
$vals[0] = '';
$vals[1] = 1;
}
- elseif (is_string($values)) {
+ elseif (!is_array($values)) {
// if it's string, then assume the value to
// be passed is for when the element is checked
$vals[0] = '';