]> git.mxchange.org Git - mailer.git/blobdiff - inc/gen_refback.php
More misc fixes and rewrites (sorry, lame description)
[mailer.git] / inc / gen_refback.php
index 0a4796575b9bdbd0b47ee106112b40cbc7d41ea5..aa7f4f420fe1809fd53cb62d6148c55de387831f 100644 (file)
@@ -43,10 +43,10 @@ if (!defined('__SECURITY')) {
 }
 
 // Make sure our functions are there
-LOAD_INC_ONCE("inc/libs/refback_functions.php");
+loadIncludeOnce('inc/libs/refback_functions.php');
 
 // Sanity-check: Do we have ref level 0?
-$result = SQL_QUERY("SELECT id FROM `{!_MYSQL_PREFIX!}_refsystem` WHERE level=0", __FILE__, __LINE__);
+$result = SQL_QUERY("SELECT `id` FROM `{!_MYSQL_PREFIX!}_refsystem` WHERE level=0", __FILE__, __LINE__);
 if (SQL_NUMROWS($result) > 0) {
        // Remove index temporaly
        SQL_ALTER_TABLE("ALTER TABLE `{!_MYSQL_PREFIX!}_refsystem` DROP INDEX `userid_level`", __FILE__, __LINE__);
@@ -82,7 +82,7 @@ if (SQL_NUMROWS($result_direct) > 0) {
 
                // Update refback table
                //* DEBUG: */ echo "uid={$content['userid']}<br />\n";
-               UPDATE_REFBACK_TABLE($content['userid']);
+               updateRefbackTable($content['userid']);
        } // END - while
 } // END - if