Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / member / what-payout.php
index 91c79fd01f2549210c66b9779283f7cf275d5e6c..223d0c09d27d64515369d4c937019c49b9b12390 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 *
@@ -76,7 +76,7 @@ ORDER BY
                array($payoutPoints), __FILE__, __LINE__);
 
        // Some entries found?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Check for his payouts
                $result_payouts = sqlQueryEscaped('SELECT
        `p`.`id`,
@@ -101,7 +101,7 @@ WHERE
 ORDER BY
        `p`.`payout_timestamp` DESC',
                        array(getMemberId()), __FILE__, __LINE__);
-               if (!ifSqlHasZeroNums($result_payouts)) {
+               if (!ifSqlHasZeroNumRows($result_payouts)) {
                        // List all his requests
                        $OUT = '';
                        while ($content = sqlFetchArray($result_payouts)) {