]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/sponsor_functions.php
More rewrites, and output-mode fixed (we should documentate this)
[mailer.git] / inc / libs / sponsor_functions.php
index 630db06a0f31aaeebab04cca1b0c97c9e0459d8a..d0eb5c850fda45ae917b798c0bb0450b96e7b872 100644 (file)
@@ -142,7 +142,7 @@ function handlSponsorRequest (&$postData, $update=false, $messageArray=array(),
                                // Generate message
                                $message = getMessageFromIndexedArray(getMessage('ADMIN_SPONSOR_UPDATED'), 'updated', $messageArray);
                                $ret = "updated";
-                       } elseif (($ALREADY === false) || (($postData['force'] == '1') && (isAdmin()))) {
+                       } elseif (($ALREADY === false) || (($postData['force'] == 1) && (isAdmin()))) {
                                // Add new sponsor, first add more data
                                $DATA['keys'][] = 'sponsor_created'; $DATA['values'][] = time();
                                $DATA['keys'][] = 'status';