This commit is contained in:
Brion Vibber 2011-03-10 13:47:44 -08:00
parent 97df2f394f
commit 6416f5ea41
1 changed files with 2 additions and 2 deletions

View File

@ -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) {