]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed ;-)
authorRoland Haeder <roland@mxchange.org>
Fri, 12 Sep 2014 20:21:25 +0000 (22:21 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 12 Sep 2014 20:21:25 +0000 (22:21 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php

index 036772d21d09a22ac377ceff9f1e01db6111e402..ee6bd0ebea554a52e9ee304e3f2b8698508bbb1e 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;