• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed vBulletin 4.x Import: "Use of undefined constant userid - assumed 'userid'"

Affected version
2.0.0
#1
Diff:
diff --git a/xenforo/src/XF/Import/Importer/vBulletin.php b/xenforo/src/XF/Import/Importer/vBulletin.php
--- a/xenforo/src/XF/Import/Importer/vBulletin.php
+++ b/xenforo/src/XF/Import/Importer/vBulletin.php
@@ -1245,7 +1245,7 @@ class vBulletin extends AbstractForumImporter
 
     protected function getAvatarFilePath($path, array $avatar)
     {
-        return "{$path}/avatar{$avatar[userid]}_{$avatar[avatarrevision]}.gif";
+        return "{$path}/avatar{$avatar['userid']}_{$avatar['avatarrevision']}.gif";
     }
 
     // ########################### STEP: BUDDY / IGNORE LISTS ###############################
Maybe only happens for certain "error_reporting" settings. :)