From 6416f5ea4113cdc2e32132d387ce1cf526f35062 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 10 Mar 2011 13:47:44 -0800 Subject: [PATCH] fix --- plugins/Poll/PollPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Poll/PollPlugin.php b/plugins/Poll/PollPlugin.php index 6b8bf9608e..f76faedb05 100644 --- a/plugins/Poll/PollPlugin.php +++ b/plugins/Poll/PollPlugin.php @@ -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) { -- 2.39.5