Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / admin / what-list_network_types.php
index 69baff139f6e25027170aed8ef50b4bf8e38c555..065390ab9792629d4692d9723da23a361050c98a 100644 (file)
@@ -70,7 +70,7 @@ if (isGetRequestElementSet('network_id')) {
        $GLOBALS['network_types_disabled'] = array();
 
        // Load all advert types for given network
-       $result = SQL_QUERY_ESC('SELECT
+       $result = sqlQueryEscaped('SELECT
        `network_type_id`,
        `network_type_handler`,
        `network_type_api_url`,
@@ -87,10 +87,10 @@ ORDER BY
                array(bigintval(getRequestElement('network_id'))), __FILE__, __LINE__);
 
        // Are there entries?
-       if (!SQL_HASZERONUMS($result)) {
+       if (!ifSqlHasZeroNums($result)) {
                // List all entries
                $OUT = '';
-               while ($row = SQL_FETCHARRAY($result)) {
+               while ($row = sqlFetchArray($result)) {
                        // Set disabled entry
                        $GLOBALS['network_types_disabled'][$row['network_type_handler']] = TRUE;
 
@@ -112,7 +112,7 @@ ORDER BY
        }
 
        // Free result
-       SQL_FREERESULT($result);
+       sqlFreeResult($result);
 
        // Add content for reload time unit
        $networkData['network_type_reload_time_unit'] = generateTimeUnitSelectionBox('h', 'network_type_reload_time_unit', array('W', 'D', 'h', 'm', 's'));