]> git.mxchange.org Git - mailer.git/blobdiff - ref.php
One more found
[mailer.git] / ref.php
diff --git a/ref.php b/ref.php
index 6683a7603c1250f0ca6df7eb30c6b2eae1daa38a..0e94e1e2366133781d49ba93bea87d7e44132a38 100644 (file)
--- a/ref.php
+++ b/ref.php
 // Load security stuff here
 require('inc/libs/security_functions.php');
 
+// Init start time
+$GLOBALS['startTime'] = microtime(true);
+
 // Set module
-$GLOBALS['module'] = 'ref';
+$GLOBALS['__module'] = 'ref';
 $GLOBALS['output_mode'] = -1;
 
 // Load the required file(s)
@@ -55,7 +58,7 @@ $url = 'modules.php?module=index';
 if ((isExtensionActive('user')) && (isReferralIdValid()) && (isValidUserId(determineReferralId()))) {
        // Update ref counter
        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ref_clicks`=`ref_clicks`+1 WHERE `userid`=%s LIMIT 1",
-               array(makeZeroToNull(determineReferralId())), __FILE__, __LINE__);
+               array(convertZeroToNull(determineReferralId())), __FILE__, __LINE__);
 
        // Base URL for redirection
        switch (getConfig('refid_target')) {