]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-reflinks.php
More language strings renamed, TODOs.txt updated:
[mailer.git] / inc / modules / member / what-reflinks.php
index 04ecf577420afae10125f2b5449f36a2ac1a1f99..c25d3ff01264e67dbaee3d7f580b973887f037f0 100644 (file)
@@ -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 = '';