We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 6416f5ea authored by Brion Vibber's avatar Brion Vibber


parent 97df2f39
......@@ -209,8 +209,8 @@ class PollPlugin extends MicroAppPlugin
if ($activity->entry) {
$pollElements = $activity->entry->getElementsByTagNameNS(self::POLL_OBJECT, 'poll');
$responseElements = $activity->entry->getElementsByTagNameNS(self::POLL_OBJECT, 'response');
if ($dataElements->length) {
$data = $dataElements->item(0);
if ($pollElements->length) {
$data = $pollElements->item(0);
$question = $data->getAttribute('question');
$opts = array();
foreach ($data->attributes as $node) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment