From: Brion Vibber Date: Wed, 3 Mar 2010 20:57:40 +0000 (-0800) Subject: Avoid notice on local group creation when uri isn't passed in at create time (needs... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7e5bf39f768e3c97ddb5b82ad20a690b674f1f47;p=quix0rs-gnu-social.git Avoid notice on local group creation when uri isn't passed in at create time (needs to be generated) --- diff --git a/classes/User_group.php b/classes/User_group.php index 1a5ddf2533..0460c9870a 100644 --- a/classes/User_group.php +++ b/classes/User_group.php @@ -455,6 +455,11 @@ class User_group extends Memcached_DataObject $group = new User_group(); $group->query('BEGIN'); + + if (empty($uri)) { + // fill in later... + $uri = null; + } $group->nickname = $nickname; $group->fullname = $fullname;