]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Can't use empty on a function call
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 25 Oct 2014 12:29:27 +0000 (14:29 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 25 Oct 2014 12:29:27 +0000 (14:29 +0200)
plugins/GroupPrivateMessage/GroupPrivateMessagePlugin.php

index 13c46590c35035c73967698b8a58f6e55f70e66e..2fd9e3ef429b71ea211a3d8e978d21ec9133062e 100644 (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);
         }