]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Poll/lib/polllistitem.php
Some cleanups:
[quix0rs-gnu-social.git] / plugins / Poll / lib / polllistitem.php
index 875fa9c7d944040c174fd7d8c9b87231a27f894e..29889d6320ab0a10ce07dc0f5d57d3d74456b2a9 100644 (file)
@@ -76,7 +76,7 @@ class PollListItem extends NoticeListItemAdapter
         $out->elementStart('div', array('class' => 'e-content poll-content'));
         $poll = Poll::getByNotice($notice);
         if ($poll) {
-            if ($user) {
+            if ($user instanceof User) {
                 $profile = $user->getProfile();
                 $response = $poll->getResponse($profile);
                 if ($response) {