Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / libs / task_functions.php
index ecca7689d4edbb7b306b2d9e556fb46fd66c7698..d01582467be2939738018496214062c640b5e080 100644 (file)
@@ -557,7 +557,7 @@ function createExtraTaskRows ($WHATs, $DESCRs, $TITLEs) {
                // New format...
                foreach ($sqls as $key => $sql) {
                        // Run SQL command, get line numbers and free memory
-                       $result = SQL_QUERY($sql, __FUNCTION__, __LINE__);
+                       $result = sqlQuery($sql, __FUNCTION__, __LINE__);
 
                        // Prepare array for output
                        $content = array(
@@ -570,17 +570,17 @@ function createExtraTaskRows ($WHATs, $DESCRs, $TITLEs) {
                                $content['bottom'] = 'bottom';
                        } // END - if
 
-                       if ((!SQL_HASZERONUMS($result)) && (!empty($WHATs[$key]))) {
+                       if ((!ifSqlHasZeroNums($result)) && (!empty($WHATs[$key]))) {
                                if (empty($TITLEs[$key])) {
                                        $TITLEs[$key] = '{--ADMIN_TASK_UNKNOWN_LIST_TITLE--}';
                                } // END - if
-                               $content['row_link'] = '<a href="{%url=modules.php?module=admin&amp;what=' . $WHATs[$key] . '%}" title="' . $TITLEs[$key] . '">' . SQL_NUMROWS($result) . '</a>';
+                               $content['row_link'] = '<a href="{%url=modules.php?module=admin&amp;what=' . $WHATs[$key] . '%}" title="' . $TITLEs[$key] . '">' . sqlNumRows($result) . '</a>';
                        } else {
                                $content['row_link'] = '0';
                        }
 
                        // Free result
-                       SQL_FREERESULT($result);
+                       sqlFreeResult($result);
 
                        // And insert the final string into extras template
                        $OUT .= loadTemplate('admin_overview_task_rows', TRUE, $content);