]> git.mxchange.org Git - mailer.git/blobdiff - ref.php
useProxy is duplicate, because isProxyUsed() is cached, fixed bug in IP resolver...
[mailer.git] / ref.php
diff --git a/ref.php b/ref.php
index 6683a7603c1250f0ca6df7eb30c6b2eae1daa38a..f3308e2ee0a96f5bcf0f2c11657bd1a29de9ce66 100644 (file)
--- a/ref.php
+++ b/ref.php
@@ -38,6 +38,9 @@
 // Load security stuff here
 require('inc/libs/security_functions.php');
 
+// Init start time
+$GLOBALS['startTime'] = microtime(true);
+
 // Set module
 $GLOBALS['module'] = 'ref';
 $GLOBALS['output_mode'] = -1;
@@ -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')) {