Skip to:
Content

bbPress.org

Changeset 5529


Ignore:
Timestamp:
09/20/2014 05:48:30 AM (10 years ago)
Author:
netweb
Message:

punBB: Don't import punBB's guest user

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/converters/PunBB.php

    r5526 r5529  
    396396        /** User Section ******************************************************/
    397397
    398         // Store old User id (Stored in usermeta)
    399         $this->field_map[] = array(
    400             'from_tablename' => 'users',
    401             'from_fieldname' => 'id',
    402             'to_type'        => 'user',
    403             'to_fieldname'   => '_bbp_user_id'
     398        // Store old user id (Stored in usermeta)
     399        // Don't import user id 1, this is PunBB's guest user
     400        $this->field_map[] = array(
     401            'from_tablename'  => 'users',
     402            'from_fieldname'  => 'id',
     403            'from_expression' => 'WHERE id != 1',
     404            'to_type'         => 'user',
     405            'to_fieldname'    => '_bbp_user_id'
    404406        );
    405407
Note: See TracChangeset for help on using the changeset viewer.