Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-refbanner.php
index 52995fd5e32c114fb8f122877a4d9985dd9cb9ae..ae676687e56ee6381b12944488d057bc932e428e 100644 (file)
@@ -57,7 +57,7 @@ if (isFormSent()) {
                                array(postRequestElement('url')), __FILE__, __LINE__);
 
                        // Was the banner found?
-                       if (ifSqlHasZeroNums($result)) {
+                       if (ifSqlHasZeroNumRows($result)) {
                                // Add banner
                                sqlQueryEscaped("INSERT INTO `{?_MYSQL_PREFIX?}_refbanner` (`url`, `alternate`, `visible`)
 VALUES ('%s','%s','%s')",
@@ -132,7 +132,7 @@ VALUES ('%s','%s','%s')",
        $result = sqlQuery('SELECT `id`, `url`, `alternate`, `visible`, `counter`, `clicks` FROM `{?_MYSQL_PREFIX?}_refbanner` ORDER BY `url` ASC', __FILE__, __LINE__);
 
        // Entries found?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Make referral banner editable and deletable
                $OUT = '';
                while ($content = sqlFetchArray($result)) {