]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_rallye.php
Old config.php is now automatically updated to new config-local.php format, several...
[mailer.git] / inc / modules / admin / what-add_rallye.php
index 7ee5f72fbec4c619c5b92eb0c36710043b180c78..5d8ef99f762ef46161ec27265ac6bca40a129ccf 100644 (file)
@@ -52,27 +52,27 @@ if (IS_FORM_SENT()) {
 
        // Is there already a rallye running?
        $result = SQL_QUERY_ESC("SELECT id, admin_id FROM `{!_MYSQL_PREFIX!}_rallye_data` WHERE (start_time <= %s AND end_time >= %s) OR (start_time >= %s AND start_time <= %s) LIMIT 1",
-               array($START, $START, $START, $END), __FILE__, __LINE__);
+       array($START, $START, $START, $END), __FILE__, __LINE__);
 
        if (SQL_NUMROWS($result) == 0) {
                // 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')",
- array(
-       getCurrentAdminId(),
-       REQUEST_POST('title'),
-       REQUEST_POST('descr'),
-       REQUEST_POST('template'),
-       $START,
-       $END,
-       REQUEST_POST('auto_add'),
-       REQUEST_POST('active'),
-       REQUEST_POST('notify'),
-), __FILE__, __LINE__);
              array(
+               getCurrentAdminId(),
+               REQUEST_POST('title'),
+               REQUEST_POST('descr'),
+               REQUEST_POST('template'),
+               $START,
+               $END,
+               REQUEST_POST('auto_add'),
+               REQUEST_POST('active'),
+               REQUEST_POST('notify'),
+               ), __FILE__, __LINE__);
 
                // Load ID
                $result = SQL_QUERY_ESC("SELECT `id` FROM `{!_MYSQL_PREFIX!}_rallye_data` WHERE start_time='%s' AND end_time='%s' AND `title`='%s' LIMIT 1",
-                array($START, $END, REQUEST_POST('title')), __FILE__, __LINE__);
+               array($START, $END, REQUEST_POST('title')), __FILE__, __LINE__);
                list($id) = SQL_FETCHROW($result);
                SQL_FREERESULT($result);