cvs: pearweb /public_html add-author.php
| From: | Thomas V.V.Cox | Date: | Sat, 01 Sep 2001 12:47:52 +0000 |
| Subject: | cvs: pearweb /public_html add-author.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-724@lists.php.net to get a copy of this message | ||
cox Sat Sep 1 08:47:52 2001 EDT
Modified files:
/pearweb/public_html add-author.php
Log:
initialize unset vars
Index: pearweb/public_html/add-author.php
diff -u pearweb/public_html/add-author.php:1.8 pearweb/public_html/add-author.php:1.9
--- pearweb/public_html/add-author.php:1.8 Sat Sep 1 08:25:29 2001
+++ pearweb/public_html/add-author.php Sat Sep 1 08:47:44 2001
@@ -54,12 +54,12 @@
}
$display_form = false;
- $obj->name = $name;
- $obj->email = $email;
- $obj->homepage = $homepage;
+ $obj->name = $name;
+ $obj->email = $email;
+ $obj->homepage = $homepage;
$obj->showemail = (bool)$showemail;
- $obj->admin = (bool)$admin;
- $obj->password = md5($password);
+ $obj->admin = (bool)$admin;
+ $obj->password = md5($password);
}
} while (0);
@@ -73,14 +73,17 @@
<TABLE>
<?php
- if (isset($errorMsg)) {
- print " <TR>\n";
- print " <TD> </TD>\n";
- print " <TD><B>$errorMsg</B></TD>\n";
- print " </TR>\n";
- }
+ if (isset($errorMsg)) {
+ print " <TR>\n";
+ print " <TD> </TD>\n";
+ print " <TD><B>$errorMsg</B></TD>\n";
+ print " </TR>\n";
+ } else {
+ $handle = $name = $email = $homepage = $password = '';
+ $showemail = $admin = false;
+ }
- $width = 60;
+ $width = 45;
$form = new HTML_Form($PHP_SELF, "POST");
$form->addText("handle", "Handle", $handle, 12);
$form->addText("name", "Name", $name, $width);