Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / admin / what-list_autopurge.php
index 4291eb17dd312d2314506fe58a94c4249c492469..defadc828e8436c14709bb26a8a9e8e8c4563079 100644 (file)
@@ -57,7 +57,7 @@ if (isExtensionInstalledAndNewer('holiday', '0.1.3')) {
 } // END - if
 
 // Check for all accounts
-$result = SQL_QUERY("SELECT
+$result = sqlQuery("SELECT
        `d`.`userid`,
        `d`.`gender`,
        `d`.`surname`,
@@ -77,10 +77,10 @@ WHERE
 ORDER BY
        `d`.`userid` ASC", __FILE__, __LINE__);
 
-if (!SQL_HASZERONUMS($result)) {
+if (!ifSqlHasZeroNums($result)) {
        // Ok, we have found some inactive accounts
        $OUT = '';
-       while ($content = SQL_FETCHARRAY($result)) {
+       while ($content = sqlFetchArray($result)) {
                // Prepare data for the row template
                $content = array(
                        'userid'      => $content['userid'],
@@ -98,7 +98,7 @@ if (!SQL_HASZERONUMS($result)) {
        } // END - while
 
        // Free memory
-       SQL_FREERESULT($result);
+       sqlFreeResult($result);
        $content['rows'] = $OUT;
 
        // Load main template