From: Evan Prodromou Date: Tue, 23 Aug 2011 15:49:45 +0000 (-0400) Subject: emit fewer notices for group joins X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b73eaa44de68b398c5a164e025b205717e4424c1;p=quix0rs-gnu-social.git emit fewer notices for group joins --- 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();