X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=click.php;h=3f303196fff8eca41228074ce3cf1ce663f24e19;hb=73d1c2fe034660e81b453653491d1b0160172398;hp=b9d2af6a506987260557ff175dc0f9c5aa1154a6;hpb=ecdeb0760bcb58accacb4e9c71750f2ce60d91b8;p=mailer.git diff --git a/click.php b/click.php index b9d2af6a50..3f303196ff 100644 --- a/click.php +++ b/click.php @@ -14,8 +14,6 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009, 2010 by Mailer Developer Team * @@ -56,7 +54,7 @@ if ((isGetRequestParameterSet('user')) && (isGetRequestParameterSet('banner'))) SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refbanner` SET `clicks`=`clicks`+1 WHERE `id`=%s LIMIT 1", array(bigintval(getRequestParameter('banner'))), __FILE__, __LINE__); // A line has been updated? - if ((SQL_AFFECTEDROWS() == 1) && (isGetRequestParameterSet('user'))) { + if ((!SQL_HASZEROAFFECTED()) && (isGetRequestParameterSet('user'))) { // Redirect to the user's referal link redirectToUrl('ref.php?refid=' . bigintval(getRequestParameter('user'))); } // END - if