Can't use empty on a function call
This commit is contained in:
parent
3d031951f9
commit
048af5ac73
|
@ -194,7 +194,7 @@ class GroupPrivateMessagePlugin extends Plugin
|
||||||
|
|
||||||
$gps = null;
|
$gps = null;
|
||||||
|
|
||||||
if (!empty($action->getGroup())) {
|
if ($action->getGroup() instanceof User_group) {
|
||||||
$gps = Group_privacy_settings::getKV('group_id', $action->getGroup()->id);
|
$gps = Group_privacy_settings::getKV('group_id', $action->getGroup()->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user