From: Mikael Nordfeldth Date: Sat, 25 Oct 2014 12:29:27 +0000 (+0200) Subject: Can't use empty on a function call X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=048af5ac732c5fc37b5f218fb498576987e7f69e;p=quix0rs-gnu-social.git Can't use empty on a function call --- 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); }