Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-surfbar_stats.php
index a60aee9bd4448983ad30cdc7f895791288b8b633..aca6624c8a7d1579528489c64a05077d1c38f690 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 *
@@ -59,7 +59,7 @@ ORDER BY
                array(bigintval(getRequestElement('url_id'))), __FILE__, __LINE__);
 
        // Entries found?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Get all rows
                $OUT = ''; $count = '0'; $visits = '0';
                while ($content = sqlFetchArray($result)) {
@@ -71,7 +71,7 @@ ORDER BY
 
                        // Load row template
                        $OUT .= loadTemplate('admin_surfbar_url_stats_row', TRUE, $content);
-                       $count++;;
+                       $count++;
                } // END - while
 
                // Prepare content
@@ -102,7 +102,7 @@ ORDER BY
        `stats_userid` ASC", __FILE__, __LINE__);
 
        // Entries found?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Get all rows
                $OUT = ''; $urlArray = '0'; $visits = '0';
                while ($content = sqlFetchArray($result)) {