cvs: php4 /pear/HTML Form.php
| From: | Wez Furlong | Date: | Fri, 19 Oct 2001 13:22:22 +0000 |
| Subject: | cvs: php4 /pear/HTML Form.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1037@lists.php.net to get a copy of this message | ||
wez Fri Oct 19 09:22:22 2001 EDT
Modified files:
/php4/pear/HTML Form.php
Log:
fix call-time pass by reference warnings
Index: php4/pear/HTML/Form.php
diff -u php4/pear/HTML/Form.php:1.16 php4/pear/HTML/Form.php:1.17
--- php4/pear/HTML/Form.php:1.16 Sat Sep 15 04:57:12 2001
+++ php4/pear/HTML/Form.php Fri Oct 19 09:22:22 2001
@@ -17,7 +17,7 @@
// | Urs Gehrig <urs@circle.ch> |
// +----------------------------------------------------------------------+
//
-// $Id: Form.php,v 1.16 2001/09/15 08:57:12 mj Exp $
+// $Id: Form.php,v 1.17 2001/10/19 13:22:22 wez Exp $
//
// HTML form utility functions.
//
@@ -102,7 +102,7 @@
$width = HTML_FORM_TEXTAREA_WT,
$height = HTML_FORM_TEXTAREA_HT)
{
- $this->fields[] = array("textarea", $name, $title, &$default, $width,
$height);
+ $this->fields[] = array("textarea", $name, $title, $default, $width, $height);
}
// }}}
@@ -125,7 +125,7 @@
function addSelect($name, $title, $entries, $default = '', $size = 1,
$blank = '', $multiple = false, $attribs = '')
{
- $this->fields[] = array("select", $name, $title, &$entries, $default,
+ $this->fields[] = array("select", $name, $title, $entries, $default,
$size, $blank, $multiple, $attribs);
}
@@ -266,7 +266,7 @@
print " <tr>\n";
print " <th align=\"right\">$title:</th>\n";
print " <td>";
- $this->displayTextarea($name, &$default, $width, $height);
+ $this->displayTextarea($name, $default, $width, $height);
print "</td>\n";
print " </tr>\n";
}
@@ -427,7 +427,7 @@
$str = " <tr>\n";
$str .= " <th align=\"right\">$title:</th>\n";
$str .= " <td>";
- $str .= $this->returnTextarea($name, &$default, $width, $height);
+ $str .= $this->returnTextarea($name, $default, $width, $height);
$str .= "</td>\n";
$str .= " </tr>\n";
@@ -531,7 +531,7 @@
$str = " <tr>\n";
$str .= " <th align=\"right\">$title:</th>\n";
$str .= " <td>\n";
- $str .= $this->returnSelect($name, &$entries, $default, $size, $blank, $multiple,
$attribs);
+ $str .= $this->returnSelect($name, $entries, $default, $size, $blank, $multiple,
$attribs);
$str .= " </td>\n";
$str .= " </tr>\n";