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

Steffen

Well-known member
Affected version
2.0.0
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. :)
 
Back
Top Bottom