From: Roland Häder Date: Fri, 19 Dec 2008 21:55:50 +0000 (+0000) Subject: Fixes for sponsor admin area X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4111c233803817fc7c28d56cf3914f6478fa5c82;p=mailer.git Fixes for sponsor admin area --- diff --git a/inc/databases.php b/inc/databases.php index d531efd569..77692d46f8 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -115,7 +115,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // Current SVN revision -define('CURR_SVN_REVISION', "684"); +define('CURR_SVN_REVISION', "685"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/modules/admin/what-del_sponsor.php b/inc/modules/admin/what-del_sponsor.php index 27bd98d9ba..a3b7324936 100644 --- a/inc/modules/admin/what-del_sponsor.php +++ b/inc/modules/admin/what-del_sponsor.php @@ -40,10 +40,10 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { // Add description as navigation point ADD_DESCR("admin", __FILE__); -if (!empty($_GET['id']))) { +if (!empty($_GET['id'])) { // Check for selected sponsor $result = SQL_QUERY_ESC("SELECT email, gender, surname, family FROM "._MYSQL_PREFIX."_sponsor_data WHERE id='%s' LIMIT 1", - array(bigintval($_GET['id'])), __FILE__, __LINE__); + array(bigintval($_GET['id'])), __FILE__, __LINE__); if (SQL_NUMROWS($result) == 1) { // Remove sponsor if (isset($_POST['ok'])) { diff --git a/inc/modules/admin/what-edit_sponsor.php b/inc/modules/admin/what-edit_sponsor.php index e24b65335f..6b3dedbdbe 100644 --- a/inc/modules/admin/what-edit_sponsor.php +++ b/inc/modules/admin/what-edit_sponsor.php @@ -157,6 +157,12 @@ if ((!empty($_GET['id'])) && (!empty($_GET['mode']))) { unset($_POST['pass2']); $PASS = false; } + + // Convert time selection + $DATA = array(); $id = "warning_interval_ye"; $skip = false; + CONVERT_SELECTIONS_TO_TIMESTAMP($_POST, $DATA, $id, $skip); + + // Save the sponsor SPONSOR_HANDLE_SPONSOR($_POST); // Convert some data for the email template