Don't use convertZeroToNull() here as it makes no sense
authorRoland Häder <roland@mxchange.org>
Sat, 6 Oct 2012 23:58:37 +0000 (23:58 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 6 Oct 2012 23:58:37 +0000 (23:58 +0000)
ref.php

diff --git a/ref.php b/ref.php
index c91ff65364b07531d0a7a6016c05e988df7e90d3..6b0302c17adcc8514e727398e118e77ec6a63ff3 100644 (file)
--- a/ref.php
+++ b/ref.php
@@ -58,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(convertZeroToNull(determineReferralId())), __FILE__, __LINE__);
+               array(determineReferralId()), __FILE__, __LINE__);
 
        // Base URL for redirection
        switch (getConfig('refid_target')) {