]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Avoid notice on local group creation when uri isn't passed in at create time (needs...
authorBrion Vibber <brion@pobox.com>
Wed, 3 Mar 2010 20:57:40 +0000 (12:57 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 3 Mar 2010 20:57:40 +0000 (12:57 -0800)
classes/User_group.php

index 1a5ddf2533477ba9122ea858052ef748f8c36c47..0460c9870a34cb318ed1c21a34429ea46059720e 100644 (file)
@@ -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;