Large code cleanups:
[mailer.git] / inc / modules / admin / what-add_rallye.php
index 7f5d46d188e80df5c99ee74bf646d0ff71e6e7f7..1b0aad03c9297174020a2bb25a3cd9af1f209676 100644 (file)
@@ -54,8 +54,29 @@ if (isFormSent()) {
 
        if (SQL_HASZERONUMS($result)) {
                // Ok, start and end time did not overlap
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_rallye_data` (`admin_id`,`title`,`descr`, template, `start_time`,`end_time`,`auto_add_new_user`,`is_active`,`send_notify`)
-VALUES (%s,'%s','%s','%s',%s,%s,'%s','%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO
+       `{?_MYSQL_PREFIX?}_rallye_data`
+(
+       `admin_id`,
+       `title`,
+       `descr`,
+       `template`,
+       `start_time`,
+       `end_time`,
+       `auto_add_new_user`,
+       `is_active`,
+       `send_notify`
+) VALUES (
+       %s,
+       '%s',
+       '%s',
+       '%s',
+       %s,
+       %s,
+       '%s',
+       '%s',
+       '%s'
+)",
                        array(
                                getCurrentAdminId(),
                                postRequestElement('title'),