From b73eaa44de68b398c5a164e025b205717e4424c1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 23 Aug 2011 11:49:45 -0400 Subject: [PATCH] emit fewer notices for group joins --- classes/User_group.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/classes/User_group.php b/classes/User_group.php index 8d08efb5ff..4870e39a15 100644 --- a/classes/User_group.php +++ b/classes/User_group.php @@ -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(); -- 2.39.5