X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ftoselector.php;h=6d424dc259ccc8433c2e5996cd392bc16fe51dbe;hb=b53e1439969bfa2c0b551d8cc2fc8fe15652c62a;hp=ba9593f0b33bfb2b62a64bbbcbba0e959b5f5e47;hpb=25198a8d4cee5b2182f1ecb99192a4108a01afa4;p=quix0rs-gnu-social.git diff --git a/lib/toselector.php b/lib/toselector.php index ba9593f0b3..6d424dc259 100644 --- a/lib/toselector.php +++ b/lib/toselector.php @@ -94,7 +94,7 @@ class ToSelector extends Widget $groups = $this->user->getGroups(); - while ($groups->fetch()) { + while ($groups instanceof User_group && $groups->fetch()) { $value = 'group:'.$groups->id; if (($this->to instanceof User_group) && $this->to->id == $groups->id) { $default = $value; @@ -145,7 +145,7 @@ class ToSelector extends Widget } break; case 'profile': - $profile = Profile::staticGet('id', $value); + $profile = Profile::getKV('id', $value); $options['replies'] = array($profile->getUri()); if ($private) { $options['scope'] = Notice::ADDRESSEE_SCOPE;