Fixed Bug in MyBB1.6 Import

Jafo

Active member
I get an undefined index error when starting an import of data from MyBB1.6. I fixed this by altering this code in library/Xenforo/Importer/MyBb.php:

Code:
  protected function _convertGlobalPermissionsForGroup(array $group)
   {
     $perms = array();

     if ($group['canview'])

To:

Code:
  protected function _convertGlobalPermissionsForGroup(array $group)
  {
    $perms = array();

     if (!isset($group['canusesig']))
       $group['canusesig'] = false;

     if ($group['canview'])
 
It appears that this was added in MyBB 1.6.5, so I'm catching it now but it should probably default to being allowed.
 
Back
Top Bottom