From 50717c968ccabb14cd82a43c1cbd8e6e8e026194 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 12 Sep 2014 22:21:25 +0200 Subject: [PATCH] Fixed ;-) Signed-off-by: Roland Haeder --- plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php b/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php index 036772d21d..ee6bd0ebea 100644 --- a/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php +++ b/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php @@ -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; -- 2.39.2