]> git.mjollnir.org Git - moodle.git/commitdiff
Some default values for variables
authormoodler <moodler>
Fri, 25 Apr 2003 12:29:52 +0000 (12:29 +0000)
committermoodler <moodler>
Fri, 25 Apr 2003 12:29:52 +0000 (12:29 +0000)
login/signup_form.php

index 392af11b5f750879f5350e296cb1ff1bcfb735ca..a4e726e69fdc36e7d5bf383f0315262e102cc10c 100644 (file)
@@ -1,3 +1,33 @@
+<?PHP
+   if (empty($user->username)) {
+       $user->username = "";
+   }
+   if (empty($user->password)) {
+       $user->password = "";
+   }
+   if (empty($user->email)) {
+       $user->email = "";
+   }
+   if (empty($user->firstname)) {
+       $user->firstname = "";
+   }
+   if (empty($user->lastname)) {
+       $user->lastname = "";
+   }
+   if (empty($user->idnumber)) {
+       $user->idnumber = "";
+   }
+   if (empty($user->phone)) {
+       $user->phone = "";
+   }
+   if (empty($user->city)) {
+       $user->city = "";
+   }
+   if (empty($user->country)) {
+       $user->country = "";
+   }
+
+?>
 <CENTER>
 <table cellpadding=20> <tr> <td bgcolor="<?=$THEME->cellcontent2 ?>" class="generalbox">