Commit 4b8fce89 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Set multipleblogs correctly for imported users


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 7d9e7fd3
......@@ -271,6 +271,10 @@ class LeapImportBlog extends LeapImportArtefactPlugin {
$blog->delete();
}
}
$userid = $importer->get('usr');
if (count_records('artefact', 'artefacttype', 'blog', 'owner', $userid) != 1) {
set_account_preference($userid, 'multipleblogs', 1);
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment