X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FPoll%2Fnewpoll.php;h=e7d5d3dd0d6d32484d7b9cb9e4f83cada24bb1c0;hb=25198a8d4cee5b2182f1ecb99192a4108a01afa4;hp=1048b0a1edd930d87b89cb4a99d600993b56bda1;hpb=325cb4833db7e3fd396720f12a27b880b63f4173;p=quix0rs-gnu-social.git diff --git a/plugins/Poll/newpoll.php b/plugins/Poll/newpoll.php index 1048b0a1ed..e7d5d3dd0d 100644 --- a/plugins/Poll/newpoll.php +++ b/plugins/Poll/newpoll.php @@ -138,10 +138,19 @@ class NewPollAction extends Action throw new ClientException(_m('Poll must have at least two options.')); } + // Notice options; distinct from choices for the poll + + $options = array(); + + // Does the heavy-lifting for getting "To:" information + + ToSelector::fillOptions($this, $options); $saved = Poll::saveNew($this->user->getProfile(), - $this->question, - $this->options); + $this->question, + $this->options, + $options); + } catch (ClientException $ce) { $this->error = $ce->getMessage(); $this->showPage();