X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-add_rallye.php;h=ace68d7486c53df9e5ac4378cd25809bff0c6712;hb=2272afc569a7b308e6c34a2d28457495e6b2483b;hp=22bfb3beaee3a5f2e97f834bcd797d883cd12b6e;hpb=4c221b6350439b8f91db58f142f03f79014f2eaf;p=mailer.git diff --git a/inc/modules/admin/what-add_rallye.php b/inc/modules/admin/what-add_rallye.php index 22bfb3beae..ace68d7486 100644 --- a/inc/modules/admin/what-add_rallye.php +++ b/inc/modules/admin/what-add_rallye.php @@ -49,7 +49,7 @@ if (isFormSent()) { $END = mktime(postRequestParameter('end_hour') , postRequestParameter('end_min') , postRequestParameter('end_sec') , postRequestParameter('end_month') , postRequestParameter('end_day') , postRequestParameter('end_year') ); // 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", + $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__); if (SQL_HASZERONUMS($result)) {