cvs: pear /HTML_QuickForm QuickForm.php
| From: | Bertrand Mansion | Date: | Wed, 15 May 2002 08:20:58 +0000 |
| Subject: | cvs: pear /HTML_QuickForm QuickForm.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3829@lists.php.net to get a copy of this message | ||
mansion Wed May 15 04:20:58 2002 EDT
Modified files:
/pear/HTML_QuickForm QuickForm.php
Log:
E_ALL fix by Jason Rust.
Index: pear/HTML_QuickForm/QuickForm.php
diff -u pear/HTML_QuickForm/QuickForm.php:1.15 pear/HTML_QuickForm/QuickForm.php:1.16
--- pear/HTML_QuickForm/QuickForm.php:1.15 Mon May 13 11:04:11 2002
+++ pear/HTML_QuickForm/QuickForm.php Wed May 15 04:20:58 2002
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: QuickForm.php,v 1.15 2002/05/13 15:04:11 mansion Exp $
+// $Id: QuickForm.php,v 1.16 2002/05/15 08:20:58 mansion Exp $
require_once("PEAR.php");
require_once("HTML/Common.php");
@@ -477,6 +477,11 @@
$includeFile = $GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES'][$type][0];
include_once $includeFile;
$elementObject = new $className();
+ foreach (range(0, 4) as $i) {
+ if (!isset($args[$i])) {
+ $args[$i] = null;
+ }
+ }
$err = $elementObject->onQuickFormEvent($event, $args, &$this);
if ($err != true) {
return $err;