fix
This commit is contained in:
parent
97df2f394f
commit
6416f5ea41
|
@ -209,8 +209,8 @@ class PollPlugin extends MicroAppPlugin
|
||||||
if ($activity->entry) {
|
if ($activity->entry) {
|
||||||
$pollElements = $activity->entry->getElementsByTagNameNS(self::POLL_OBJECT, 'poll');
|
$pollElements = $activity->entry->getElementsByTagNameNS(self::POLL_OBJECT, 'poll');
|
||||||
$responseElements = $activity->entry->getElementsByTagNameNS(self::POLL_OBJECT, 'response');
|
$responseElements = $activity->entry->getElementsByTagNameNS(self::POLL_OBJECT, 'response');
|
||||||
if ($dataElements->length) {
|
if ($pollElements->length) {
|
||||||
$data = $dataElements->item(0);
|
$data = $pollElements->item(0);
|
||||||
$question = $data->getAttribute('question');
|
$question = $data->getAttribute('question');
|
||||||
$opts = array();
|
$opts = array();
|
||||||
foreach ($data->attributes as $node) {
|
foreach ($data->attributes as $node) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user