]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-repair_cats.php
Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / admin / what-repair_cats.php
index a3fd099fa282930bad8028e113ef1bf3dfbee1f2..8c76b24c89e0a762f0dc7ad8e8ed44960f390482 100644 (file)
@@ -44,19 +44,19 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 // Go through all categories
-$result = SQL_QUERY("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_cats` GROUP BY `userid` ORDER BY `userid` ASC", __FILE__, __LINE__);
-if (!SQL_HASZERONUMS($result)) {
+$result = sqlQuery("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_cats` GROUP BY `userid` ORDER BY `userid` ASC", __FILE__, __LINE__);
+if (!ifSqlHasZeroNums($result)) {
         // Nothing is removed for now... ;-)
        $removedRows = '0';
 
        // Check if found userid is also found in user_data table
-       while ($content = SQL_FETCHARRAY($result)) {
+       while ($content = sqlFetchArray($result)) {
                // Is the account not there?
                if (!fetchUserData($content['userid'])) {
                        // Ok, we found something to remove
-                       SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `userid`=%s",
+                       sqlQueryEscaped("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `userid`=%s",
                                array(bigintval($content['userid'])), __FILE__, __LINE__);
-                       $removedRows += SQL_AFFECTEDROWS();
+                       $removedRows += sqlAffectedRows();
                } // END - if
        } // END - while