]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-refbanner.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-refbanner.php
index c9f900db5c5603f142424d35d2bee940b422825a..ae676687e56ee6381b12944488d057bc932e428e 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -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)) {