Refback extension in alpha phase finished, users can give refback to all refs in...
[mailer.git] / inc / modules / guest / what-register.php
index 1acda592513399fc9c4dd27a759d394d319fa48b..860cd24d90ec630248173febf3c570942a92aae7 100644 (file)
@@ -262,6 +262,12 @@ VALUES ('%s','%s','%s','%s','%s',%s,'%s','%s',%s, %s,%s,'%s',%s, %s,'%s','UNCONF
                return;
        } // END - if
 
+       // Is the refback extension there?
+       if (EXT_IS_ACTIVE("refback")) {
+               // Update refback table
+               UPDATE_REFBACK_TABLE($userid);
+       } // END - if
+
        // Write his welcome-points
        $result = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_user_points WHERE userid=%s AND ref_depth=0 LIMIT 1",
         array(bigintval($userid)), __FILE__, __LINE__);