]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/sponsor_functions.php
A lot has been rewritten, ext-teams added, ext-forced continued:
[mailer.git] / inc / libs / sponsor_functions.php
index 035c56b875f321eb2ea353728a9c51d91333570f..eb9aad248ebdc74551fe2ff141176c2e4bcd426f 100644 (file)
@@ -41,7 +41,7 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 //
-function handleSponsorRequest ($postData, $update=false, $messageArray=array(), $RET_STATUS=false) {
+function handleSponsorRequest ($postData, $update=false, $messageArray = array(), $RET_STATUS=false) {
        // Init a lot variables
        $SAVE = true;
        $UPDATE = false;
@@ -170,7 +170,7 @@ function handleSponsorRequest ($postData, $update=false, $messageArray=array(),
                                unset($DATA['values'][$key]);
 
                                // Implode all data into strings
-                               $keyArray   = implode('`, `'  , $DATA['keys']);
+                               $keyArray   = implode('`,`'  , $DATA['keys']);
                                $valueArray = str_repeat("%s', '", count($DATA['values']) - 1);
 
                                // Generate string
@@ -269,7 +269,7 @@ function addSponsorMenu ($current) {
 
        // Load main menu entries
        $result_main = SQL_QUERY("SELECT
-       `action` AS `main_action`, `title` AS `main_title`
+       `action` AS `main_action`,`title` AS `main_title`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_menu`
 WHERE
@@ -282,7 +282,7 @@ ORDER BY
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Load sub menus
                        $result_sub = SQL_QUERY_ESC("SELECT
-       `what` AS `sub_what`, `title` AS `sub_title`
+       `what` AS `sub_what`,`title` AS `sub_title`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_menu`
 WHERE
@@ -565,7 +565,7 @@ function doProcessSponsorFormRequest ($messageArray = array()) {
        switch ($status) {
                case 'added': // Sponsor successfully added with account status = UNCONFIRMED!
                        // Check for his id number
-                       $result = SQL_QUERY_ESC("SELECT `id`, `hash` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `email`='%s' LIMIT 1",
+                       $result = SQL_QUERY_ESC("SELECT `id`,`hash` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `email`='%s' LIMIT 1",
                                array(postRequestParameter('email')), __FUNCTION__, __LINE__);
                        if (SQL_NUMROWS($result) == 1) {
                                // id found so let's load it for the confirmation email
@@ -696,7 +696,7 @@ function fetchSponsorData ($sponsor_id, $column = 'id') {
                if (isset($GLOBALS['sponsor_data'][getCurrentSponsorId()]['last_failure'])) {
                        // Backup the raw one and zero it
                        $GLOBALS['sponsor_data'][getCurrentSponsorId()]['last_failure_raw'] = $GLOBALS['sponsor_data'][getCurrentSponsorId()]['last_failure'];
-                       $GLOBALS['sponsor_data'][getCurrentSponsorId()]['last_failure'] = null;
+                       $GLOBALS['sponsor_data'][getCurrentSponsorId()]['last_failure'] = NULL;
 
                        // Is it not zero?
                        if (!is_null($GLOBALS['sponsor_data'][getCurrentSponsorId()]['last_failure_raw'])) {