$END = mktime(postRequestElement('end_time_hour') , postRequestElement('end_time_min') , 0, postRequestElement('end_time_month') , postRequestElement('end_time_day') , postRequestElement('end_time_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)) {
if (!empty($id)) {
// Reload to prices...
- redirectToUrl('modules.php?module=admin&what=config_rallye_prices&rallye_id=' . bigintval($id));
+ redirectToUrl('modules.php?module=admin&what=list_rallye_prices&rallye_id=' . bigintval($id));
} else {
// Problem detected...
displayMessage('{--ADMIN_RALLYE_PROBLEM_CREATE--}');
$content['end_year'] = addSelectionBox('year' , getYear($endingStamp) , 'end_time');
// Load template
-loadTemplate('admin_add_rallye', false, $content);
+loadTemplate('admin_add_rallye', FALSE, $content);
// [EOF]
?>