]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/refback_functions.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / libs / refback_functions.php
index 50676cfff821c2c80de8e8bcf1e60488dff51292..a6d13a89c3127b5a3969dab7a8f45fa1f843438c 100644 (file)
@@ -192,7 +192,7 @@ ORDER BY
 
        // Entries found?
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'numRows=' . sqlNumRows($result));
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Add all
                while ($content = sqlFetchArray($result)) {
                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'refid=' . convertNullToZero($refid) . ',level=' . $level . ',userid=' . $content['userid']);
@@ -239,7 +239,7 @@ ORDER BY
                array(bigintval($userid), bigintval($level)), __FUNCTION__, __LINE__);
 
        // Are there some entries?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Fetch all entries
                while ($row = sqlFetchArray($result)) {
                        // Calculate click rate