]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix
authorBrion Vibber <brion@pobox.com>
Thu, 10 Mar 2011 21:47:44 +0000 (13:47 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 10 Mar 2011 21:47:44 +0000 (13:47 -0800)
plugins/Poll/PollPlugin.php

index 6b8bf9608e3de1a09096b10b309d085dc5cebab3..f76faedb05d52acebf23bbfe73a1076070898fe3 100644 (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) {