]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_transfer.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-list_transfer.php
index e2c939a1b89ac6314a190534086e2d5f09376496..035e1f04acfe36df8459588edcf3e5905f556383 100644 (file)
@@ -43,7 +43,9 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-// We only need outgoing transfers
+$total = '0';
+
+// Only out-going transfers are needed
 $result = sqlQuery('SELECT
        `userid` AS `from_userid`,
        `to_userid`,
@@ -56,8 +58,7 @@ FROM
 ORDER BY
        `trans_id` ASC', __FILE__, __LINE__);
 
-$total = '0';
-if (!ifSqlHasZeroNums($result)) {
+if (!ifSqlHasZeroNumRows($result)) {
        // Output rows
        $OUT = '';
        while ($content = sqlFetchArray($result)) {