Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / libs / network_functions.php
index f0f166d4951b767976841af451af729fe205ddaa..9979266aac62289fa75cdc8625540d1bea47cf12 100644 (file)
@@ -424,7 +424,7 @@ ORDER BY
                        array(bigintval($networkId)), __FUNCTION__, __LINE__);
 
                // Is there an entry?
-               if (!ifSqlHasZeroNums($result)) {
+               if (!ifSqlHasZeroNumRows($result)) {
                        // Then add all
                        while ($row = sqlFetchArray($result)) {
                                // Add it with new index as it is no longer required
@@ -548,7 +548,7 @@ ORDER BY
                ), __FUNCTION__, __LINE__);
 
                // Are there records?
-               if (!ifSqlHasZeroNums($result)) {
+               if (!ifSqlHasZeroNumRows($result)) {
                        // Load all but make new indexes as the old are not required
                        while ($row = sqlFetchArray($result)) {
                                // Add it
@@ -667,7 +667,7 @@ ORDER BY
        `network_short_name` ASC', __FUNCTION__, __LINE__);
 
        // Are there entries?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // List all entries
                $rows = array();
                while ($row = sqlFetchArray($result)) {
@@ -744,7 +744,7 @@ ORDER BY
                ), __FUNCTION__, __LINE__);
 
        // Are there entries?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // List all entries
                $rows = array();
                while ($row = sqlFetchArray($result)) {
@@ -791,7 +791,7 @@ ORDER BY
        `t`.`network_type_handler` ASC', __FUNCTION__, __LINE__);
 
        // Are there entries?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // List all entries
                $rows = array();
                while ($row = sqlFetchArray($result)) {
@@ -1412,7 +1412,7 @@ ORDER BY
        `network_array_sort` ASC', __FUNCTION__, __LINE__);
 
                // Are there entries?
-               if (!ifSqlHasZeroNums($result)) {
+               if (!ifSqlHasZeroNumRows($result)) {
                        // Get all entries
                        while ($row = sqlFetchArray($result)) {
                                // Add it to our global array
@@ -2570,7 +2570,7 @@ function doAdminNetworkProcessAddHandlerTypesConfig ($displayMessage = TRUE, $co
                        array(bigintval(getRequestElement('network_id'))), __FUNCTION__, __LINE__);
 
                // Are there entries?
-               if (ifSqlHasZeroNums($result)) {
+               if (ifSqlHasZeroNumRows($result)) {
                        // No, then abort here
                        displayMessage('{--ADMIN_CONFIG_NETWORK_HANDLER_SET_ALL_404--}');
                        return;
@@ -2666,7 +2666,7 @@ function doAdminNetworkProcessEditHandlerTypesConfig ($displayMessage = TRUE, $c
                        array(bigintval(getRequestElement('network_id'))), __FUNCTION__, __LINE__);
 
                // Are there entries?
-               if (ifSqlHasZeroNums($result)) {
+               if (ifSqlHasZeroNumRows($result)) {
                        // No, then abort here
                        displayMessage('{--ADMIN_CONFIG_NETWORK_HANDLER_SET_ALL_404--}');
                        return;