]> git.mxchange.org Git - mailer.git/blobdiff - inc/fix_refsystem.php
Mailer project continued:
[mailer.git] / inc / fix_refsystem.php
index 3c9f1eec1d2d91c63ad47bad78c0cac1c9b09849..6df29ac09edf30c1f806cae9dcaea90f8a32db10 100644 (file)
@@ -40,7 +40,7 @@ if (!defined('__SECURITY')) {
        die();
 } // END - if
 
-// Sanity-check: Do we have ref level 0? If so, this must be fixed to NULL and `level` must be increased by one
+// Sanity-check: Is there ref level 0? If so, this must be fixed to NULL and `level` must be increased by one
 $result = SQL_QUERY('SELECT `id` FROM `{?_MYSQL_PREFIX?}_refsystem` WHERE `level`=0', __FILE__, __LINE__);
 if (!SQL_HASZERONUMS($result)) {
        // Remove index temporaly
@@ -50,7 +50,7 @@ if (!SQL_HASZERONUMS($result)) {
        SQL_QUERY('UPDATE `{?_MYSQL_PREFIX?}_refsystem` SET `level`=`level`+1', __FILE__, __LINE__);
 
        // Add it again
-       SQL_ALTER_TABLE('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` ADD UNIQUE INDEX `userid_level` (`userid`,`level`)', __FILE__, __LINE__);
+       SQL_ALTER_TABLE('ALTER TABLE `{?_MYSQL_PREFIX?}_refsystem` ADD UNIQUE INDEX `userid_level` (`userid`, `level`)', __FILE__, __LINE__);
 
        // Rebuild cache
        rebuildCache('refsystem', 'refsystem');
@@ -73,7 +73,7 @@ WHERE
 ORDER BY
        `userid` ASC', __FILE__, __LINE__);
 
-// Do we have entries?
+// Are there entries?
 if (!SQL_HASZERONUMS($result_direct)) {
        // When 'walk' through all users
        while ($content = SQL_FETCHARRAY($result_direct)) {