X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-add_rallye.php;h=0cb4d2e5aed861f8f4a74c3ca1ca2fe20e73ae7a;hb=4b7f401f2a4680ae46ca41c57f749cfe35163660;hp=555b6ca7f7b4f77dfe6bdbd518f28a60b6810aa4;hpb=d3c4fdd9bfab35389e1a5ff48f3952d527c7b4bb;p=mailer.git diff --git a/inc/modules/admin/what-add_rallye.php b/inc/modules/admin/what-add_rallye.php index 555b6ca7f7..0cb4d2e5ae 100644 --- a/inc/modules/admin/what-add_rallye.php +++ b/inc/modules/admin/what-add_rallye.php @@ -1,7 +1,7 @@ = %s) OR (start_time >= %s AND start_time <= %s) LIMIT 1", array($START, $START, $START, $END), __FILE__, __LINE__); - if (SQL_NUMROWS($result) == 0) { + 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')", array( getCurrentAdminId(), - postRequestElement('title'), - postRequestElement('descr'), - postRequestElement('template'), + postRequestParameter('title'), + postRequestParameter('descr'), + postRequestParameter('template'), $START, $END, - postRequestElement('auto_add'), - postRequestElement('active'), - postRequestElement('notify'), + postRequestParameter('auto_add'), + postRequestParameter('active'), + postRequestParameter('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, postRequestElement('title')), __FILE__, __LINE__); + array($START, $END, postRequestParameter('title')), __FILE__, __LINE__); list($id) = SQL_FETCHROW($result); SQL_FREERESULT($result);