emit fewer notices for group joins

This commit is contained in:
Evan Prodromou 2011-08-23 11:49:45 -04:00
parent eed5192405
commit b73eaa44de

View File

@ -529,6 +529,18 @@ class User_group extends Managed_DataObject
// MAGICALLY put fields into current scope
// @fixme kill extract(); it makes debugging absurdly hard
$defaults = array('nickname' => null,
'fullname' => null,
'homepage' => null,
'description' => null,
'location' => null,
'uri' => null,
'mainpage' => null,
'aliases' => array(),
'userid' => null);
$fields = array_merge($defaults, $fields);
extract($fields);
$group = new User_group();