cvs: pear /HTML_QuickForm/QuickForm checkbox.php

From: Date: Sun, 15 Dec 2002 11:45:08 +0000
Subject: cvs: pear /HTML_QuickForm/QuickForm checkbox.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7895@lists.php.net to get a copy of this message
mansion Sun Dec 15 06:45:08 2002 EDT Modified files: /pear/HTML_QuickForm/QuickForm checkbox.php Log: Fix a warning as spotted by <entis at poczta.fm> Index: pear/HTML_QuickForm/QuickForm/checkbox.php diff -u pear/HTML_QuickForm/QuickForm/checkbox.php:1.6 pear/HTML_QuickForm/QuickForm/checkbox.php:1.7 --- pear/HTML_QuickForm/QuickForm/checkbox.php:1.6 Fri Nov 15 17:35:38 2002 +++ pear/HTML_QuickForm/QuickForm/checkbox.php Sun Dec 15 06:45:08 2002 @@ -17,7 +17,7 @@ // | Bertrand Mansion <bmansion@mamasam.com> | // +----------------------------------------------------------------------+ // -// $Id: checkbox.php,v 1.6 2002/11/15 22:35:38 jrust Exp $ +// $Id: checkbox.php,v 1.7 2002/12/15 11:45:08 mansion Exp $ require_once("HTML/QuickForm/input.php"); @@ -230,7 +230,7 @@ $this->$className($arg[0], $arg[1], $arg[2], $arg[3]); // need to set the submit value in case setDefault never gets called $elementName = $this->getName(); - if (count($caller->_submitValues) > 0) { + if (isset($caller->_submitValues) && count($caller->_submitValues) > 0) { $tmp_checked = isset($caller->_submitValues[$elementName]) ? $caller->_submitValues[$elementName] : false; $this->setChecked($tmp_checked); } @@ -257,4 +257,4 @@ // }}} } //end class HTML_QuickForm_checkbox -?> +?> \ No newline at end of file

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