]> git.mxchange.org Git - mailer.git/blobdiff - inc/fix_refsystem.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / fix_refsystem.php
index a3054e0c86e5e56ec911139a01ef5d68c3b80d53..c4200c8fbc2ed4a1cf1d632eb72a708c7cf8aa0d 100644 (file)
@@ -37,7 +37,7 @@ if (!defined('__SECURITY')) {
 
 // Sanity-check: Is there ref level 0? If so, this must be fixed to NULL and `level` must be increased by one
 $result = sqlQuery('SELECT `id` FROM `{?_MYSQL_PREFIX?}_refsystem` WHERE `level`=0', __FILE__, __LINE__);
-if (!ifSqlHasZeroNums($result)) {
+if (!ifSqlHasZeroNumRows($result)) {
        // Remove index temporaly
        sqlQueryAlterTable('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` DROP INDEX `userid_level`', __FILE__, __LINE__);
 
@@ -69,7 +69,7 @@ ORDER BY
        `userid` ASC', __FILE__, __LINE__);
 
 // Are there entries?
-if (!ifSqlHasZeroNums($result_direct)) {
+if (!ifSqlHasZeroNumRows($result_direct)) {
        // When 'walk' through all users
        while ($content = sqlFetchArray($result_direct)) {
                // Update refback table