]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'fixes/type-hints' into social-master
authorRoland Haeder <roland@mxchange.org>
Fri, 12 Sep 2014 20:28:09 +0000 (22:28 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 12 Sep 2014 20:28:09 +0000 (22:28 +0200)
plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php

index d78ef79704f8b2347f02f809ea268f04a9220acc..9c9f6bf99c0a2ab14ed28ff1df2def808f80f67c 100644 (file)
@@ -190,9 +190,10 @@ class GroupPrivateMessagePlugin extends Plugin
     function onEndGroupSaveForm(GroupAction $action)
     {
         $gps = null;
+        $group = $action->getGroup();
 
-        if (!empty($action->getGroup())) {
-            $gps = Group_privacy_settings::getKV('group_id', $action->getGroup()->id);
+        if ($group instanceof User_group) {
+            $gps = Group_privacy_settings::getKV('group_id', $group->id);
         }
 
         $orig = null;