X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-list_newsletter.php;h=3a7f335271d280c582d121d7969a2b58511deaeb;hb=3daede4c904e23905c3e48dd6749019deca0a0e0;hp=1e7943f7429995b10b35f9d3fcd5451f0ddef9b2;hpb=39172de4ecec2f6ddc597a5ae439e7aef79c75ed;p=mailer.git diff --git a/inc/modules/admin/what-list_newsletter.php b/inc/modules/admin/what-list_newsletter.php index 1e7943f742..3a7f335271 100644 --- a/inc/modules/admin/what-list_newsletter.php +++ b/inc/modules/admin/what-list_newsletter.php @@ -40,12 +40,11 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { // Add description as navigation point ADD_DESCR("admin", __FILE__); -if ((!empty($_POST['uid'])) && (!empty($_POST['id']))) -{ +if ((!empty($_POST['uid'])) && (!empty($_POST['id']))) { // Update database... // First user's account - $result = SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET nl_until='".time()."+nl_timespan', nl_receive='N', nl_timespan='0' WHERE userid=%s LIMIT 1", - array(bigintval($_POST['uid'])), __FILE__, __LINE__); + SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET nl_until=(UNIX_TIMESTAMP() + nl_timespan), nl_receive='N', nl_timespan=0 WHERE userid=%s LIMIT 1", + array(bigintval($_POST['uid'])), __FILE__, __LINE__); // Next the task system... RUN_FILTER('solve_task', bigintval($_POST['id'])); @@ -56,11 +55,10 @@ if ((!empty($_POST['uid'])) && (!empty($_POST['id']))) // Output message to admin LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_NL_MEMBER_DONE); -} - else -{ - // Currently under construction! +} else { + // @TODO Currently under construction! LOAD_TEMPLATE("admin_settings_saved", false, UNDER_CONSTRUCTION); } + // ?>