Can't use empty on a function call

This commit is contained in:
Mikael Nordfeldth 2014-10-25 14:29:27 +02:00
parent 3d031951f9
commit 048af5ac73
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}