Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / member / what-stats.php
index 118f1b840b180fe5e4bc7b3c00df41d28b5ef910..9c62bc4fd2338fc2f8bd23a4df2b26620afa8b0f 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 *
@@ -69,7 +69,7 @@ ORDER BY
        array(getMemberId()), __FILE__, __LINE__);
 
 // Are there mails left in pool?
-if (!ifSqlHasZeroNums($result)) {
+if (!ifSqlHasZeroNumRows($result)) {
        // Load all orders
        $OUT = '';
        while ($content = sqlFetchArray($result)) {
@@ -109,7 +109,7 @@ ORDER BY
        `timestamp_ordered` DESC',
        array(getMemberId()), __FILE__, __LINE__);
 
-if (!ifSqlHasZeroNums($result)) {
+if (!ifSqlHasZeroNumRows($result)) {
        // Mail orders are in pool so we can display them
        $OUT = '';
        while ($content = sqlFetchArray($result)) {