From 048af5ac732c5fc37b5f218fb498576987e7f69e Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 25 Oct 2014 14:29:27 +0200 Subject: [PATCH] Can't use empty on a function call --- plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php b/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php index 13c46590c3..2fd9e3ef42 100644 --- a/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php +++ b/plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php @@ -194,7 +194,7 @@ class GroupPrivateMessagePlugin extends Plugin $gps = null; - if (!empty($action->getGroup())) { + if ($action->getGroup() instanceof User_group) { $gps = Group_privacy_settings::getKV('group_id', $action->getGroup()->id); } -- 2.39.2