]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_rallye.php
Fix for installation phase, thanks to schatty
[mailer.git] / inc / modules / admin / what-add_rallye.php
index d22abccd5eda15dfb24caebfaee7abd84ce5382b..d0ffeb91690c2476e8e196412d003ce17dae4a39 100644 (file)
@@ -56,7 +56,7 @@ if (isset($_POST['ok']))
                $result = 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(
-       GET_ADMIN_ID(get_session('admin_login')),
+       GET_CURRENT_ADMIN_ID(),
        $_POST['title'],
        $_POST['descr'],
        $_POST['template'],
@@ -108,9 +108,9 @@ define('_START_MONTH', ADD_SELECTION("month", date("m", time()), "start"));
 define('_START_YEAR' , ADD_SELECTION("year" , date('Y', time()), "start"));
 
 // Calcualte ending date
-$D = date("d", time() + ($_CONFIG['one_day'] * 7));
-$M = date("m", time() + ($_CONFIG['one_day'] * 7));
-$Y = date('Y', time() + ($_CONFIG['one_day'] * 7));
+$D = date("d", time() + (getConfig('one_day') * 7));
+$M = date("m", time() + (getConfig('one_day') * 7));
+$Y = date('Y', time() + (getConfig('one_day') * 7));
 
 // Ending day
 define('_END_SEC'  , ADD_SELECTION("sec"  , "0"              , "end"));