Several code-cleanups:
[mailer.git] / inc / libs / sponsor_functions.php
index fac07ce8cad9b34676fd8cfd024998f98b6b109c..15ebf6c442cbedbf9761c93fd293dd5387da2b4d 100644 (file)
@@ -79,7 +79,7 @@ function handleSponsorRequest ($postData, $update=false, $messageArray=array(),
                                                        if (SQL_NUMROWS($result) == 1) {
                                                                // Yes, he is!
                                                                if ((getWhat() == 'add_sponsor') || ($update)) {
-                                                                       // Already found!
+                                                                       // Already found
                                                                        $ALREADY = true;
                                                                } else {
                                                                        // Update his data
@@ -207,7 +207,7 @@ function handleSponsorRequest ($postData, $update=false, $messageArray=array(),
                                $result = SQL_QUERY_ESC($sql, $DATA['values'], __FUNCTION__, __LINE__);
                        } // END - if
                } else {
-                       // Error found!
+                       // Error detected
                        $message = getMessageFromIndexedArray('{--SPONSOR_DATA_NOT_SAVED--}', 'failed', $messageArray);
                        loadTemplate('admin_settings_saved', false, $message);
                }
@@ -226,7 +226,7 @@ function sponsorTranslateUserStatus ($status) {
                // Then use it
                $ret = getMessage($constantName);
        } else {
-               // Not found!
+               // Not found
                //* DEBUG: */ debug_report_bug(__FUNCTION__, __LINE__, sprintf("Unknown status %s detected.", $status));
                logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown status %s detected.", $status));
                $ret = getMaskedMessage('ACCOUNT_STATUS_UNKNOWN', $status);
@@ -340,7 +340,7 @@ function addSponsorContent ($what) {
                // Every sponsor action will output nothing directly. It will be written into $GLOBALS['sponsor_output']!
                loadIncludeOnce($INC);
        } else {
-               // File not found!
+               // File not found
                $GLOBALS['sponsor_output'] .= loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_CONTENT_404', $what));
        }