diff admajax.php @ 1014:87eda2e9023f

Back out the stValidateRequestUserData() parameter change, use separate function instead for checking for if e-mail is required.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Nov 2015 18:25:05 +0200
parents fd957c37fd80
children 35a00a986f79
line wrap: on
line diff
--- a/admajax.php	Thu Nov 05 00:05:50 2015 +0200
+++ b/admajax.php	Thu Nov 05 18:25:05 2015 +0200
@@ -1725,7 +1725,7 @@
       stExecSQLCond($sql, "OK, compo added.");
     }
     else
-    if ($type == "attendees" && stValidateRequestUserData(TRUE, $emdummy, FALSE))
+    if ($type == "attendees" && stValidateRequestUserData(TRUE, FALSE))
     {
       $sql = stGetAttendeeRegistrationSQL();
       stExecSQLCond($sql, "OK, attendee added.");
@@ -1777,7 +1777,7 @@
         stSetStatus(200, "Updated settings.");
       }
       else
-      if ($type == "attendees" && stValidateRequestUserData(TRUE, $emdummy, $id))
+      if ($type == "attendees" && stValidateRequestUserData(TRUE, $id))
       {
         $sql = stPrepareSQLUpdate("attendees",
           "WHERE id=".$id,