]> git.mxchange.org Git - mailer.git/blobdiff - ref.php
Same color for admin action links
[mailer.git] / ref.php
diff --git a/ref.php b/ref.php
index 6fd272a009afc08193a1ee0f3e968911b1235d38..b4f6950180b91b8e9bac19ef71ada61c2690cc29 100644 (file)
--- a/ref.php
+++ b/ref.php
@@ -79,7 +79,7 @@ if (determineReferalId() != 0) {
        setSession('refid', determineReferalId());
 
        // Is the refid valid?
-       if (determineReferalId() > 0) {
+       if (isValidUserId(determineReferalId())) {
                // Update ref counter
                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ref_clicks`=`ref_clicks`+1 WHERE `userid`=%s LIMIT 1",
                        array(determineReferalId()), __FILE__, __LINE__);