X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=ref.php;h=b4f6950180b91b8e9bac19ef71ada61c2690cc29;hb=53aff78b88e6e8756f0aa21bb30a5f6b3c569211;hp=6fd272a009afc08193a1ee0f3e968911b1235d38;hpb=7618bd22d09e9bddab2ca39308f6523c06dd1521;p=mailer.git diff --git a/ref.php b/ref.php index 6fd272a009..b4f6950180 100644 --- 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__);