}
// 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__);
// Update refback table
//* DEBUG: */ echo "uid={$content['userid']}<br />\n";
- UPDATE_REFBACK_TABLE($content['userid']);
+ updateRefbackTable($content['userid']);
} // END - while
} // END - if