Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / libs / forced_functions.php
index b606f295dff340e526b4effda98a6b28cdcbe1f5..b73b0d1c38c9f8494888b625a173be90b2752f7b 100644 (file)
@@ -213,7 +213,7 @@ ORDER BY
        `forced_ads_id` ASC', __FUNCTION__, __LINE__);
 
        // Is there at least one entry?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Get all elements
                while ($content = sqlFetchArray($result)) {
                        // Add it
@@ -253,7 +253,7 @@ ORDER BY
        `forced_costs_id` ASC", __FUNCTION__, __LINE__);
 
        // Is there at least one entry?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Get all elements
                while ($content = sqlFetchArray($result)) {
                        // Add it
@@ -301,7 +301,7 @@ ORDER BY
                ), __FUNCTION__, __LINE__);
 
        // Is there at least one entry?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Get all elements
                while ($content = sqlFetchArray($result)) {
                        // Add it