X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-reflinks.php;h=c25d3ff01264e67dbaee3d7f580b973887f037f0;hb=34db702d004b245e5528b0ba20c6de441f61820a;hp=04ecf577420afae10125f2b5449f36a2ac1a1f99;hpb=32fed28f469610c8bfdec7f18089cceea9e15df0;p=mailer.git diff --git a/inc/modules/member/what-reflinks.php b/inc/modules/member/what-reflinks.php index 04ecf57742..c25d3ff012 100644 --- a/inc/modules/member/what-reflinks.php +++ b/inc/modules/member/what-reflinks.php @@ -69,11 +69,11 @@ $whereStatement = " WHERE `visible`='Y'"; if (isAdmin()) $whereStatement = ''; $result = SQL_QUERY("SELECT `id`, `url`, `alternate`, `counter`, `clicks` FROM `{?_MYSQL_PREFIX?}_refbanner`", __FILE__, __LINE__); -if (SQL_NUMROWS($result) > 0) { +if (!SQL_HASZERONUMS($result)) { // List available ref banners $OUT = ''; while ($row = SQL_FETCHARRAY($result)) { - $test = str_replace(getConfig('URL'), getConfig('PATH'), $row['url']); $size = '0'; + $test = str_replace(getUrl(), getPath(), $row['url']); $size = '0'; if ($test == $row['url']) { // Download banner (I hope you keep the banner on same server???) $fp = sendGetRequest($row['url']); $bannerContent = '';