From 17e5ffbe4ee8c0c7093eecac598ce11660b8b95b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 28 Sep 2010 13:07:55 -0700 Subject: [PATCH] YammerImport: set some more default fields for user_group registration (still need a group admin tho) --- plugins/YammerImport/lib/yammerimporter.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/YammerImport/lib/yammerimporter.php b/plugins/YammerImport/lib/yammerimporter.php index 0ce8ffb48b..ae916dc221 100644 --- a/plugins/YammerImport/lib/yammerimporter.php +++ b/plugins/YammerImport/lib/yammerimporter.php @@ -249,8 +249,11 @@ class YammerImporter $options['mainpage'] = common_local_url('showgroup', array('nickname' => $options['nickname'])); + // Set some default vals or User_group::register will whine + $options['homepage'] = ''; + $options['location'] = ''; + $options['aliases'] = array(); // @fixme what about admin user for the group? - // bio? homepage etc? aliases? $options['local'] = true; return array('orig_id' => $origId, -- 2.39.5