Fixes for sponsor admin area
authorRoland Häder <roland@mxchange.org>
Fri, 19 Dec 2008 21:55:50 +0000 (21:55 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 19 Dec 2008 21:55:50 +0000 (21:55 +0000)
inc/databases.php
inc/modules/admin/what-del_sponsor.php
inc/modules/admin/what-edit_sponsor.php

index d531efd..77692d4 100644 (file)
@@ -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);
index 27bd98d..a3b7324 100644 (file)
@@ -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'])) {
index e24b653..6b3dedb 100644 (file)
@@ -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