]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/sponsor_functions.php
Complete rewrite of and , wrapper functions added, see bug #101
[mailer.git] / inc / libs / sponsor_functions.php
index 024a0c9089a633d24a958dec757942aca3c7a58e..5a24877ff08efa8b93bd565d1b8925eb4d160f92 100644 (file)
@@ -132,7 +132,7 @@ function SPONSOR_HANDLE_SPONSOR (&$POST, $NO_UPDATE=false, $MSGs=array(), $RET_S
 
                        // Remove last ", " from SQL string
                        $SQL = substr($SQL, 0, -2)." WHERE id='%s' LIMIT 1";
-                       $DATA['values'][] = bigintval($_GET['id']);
+                       $DATA['values'][] = bigintval(REQUEST_GET('id'));
 
                        // Generate message
                        $MSG = SPONSOR_GET_MESSAGE(ADMIN_SPONSOR_UPDATED, "updated", $MSGs);
@@ -339,7 +339,7 @@ function GENERATE_SPONSOR_CONTENT($what)
 {
        $OUT = "";
        $INC = sprintf("inc/modules/sponsor/%s.php", $what);
-       if (FILE_READABLE($INC)) {
+       if (INCLUDE_READABLE($INC)) {
                // Every sponsor action will output nothing directly. It will be written into $OUT!
                LOAD_INC_ONCE($INC);
        } else {