From 84cd4e2bb50c4c6dcefa01911bf87f244c2b9091 Mon Sep 17 00:00:00 2001 From: Moc Date: Mon, 26 May 2014 12:15:30 +0200 Subject: [PATCH] Check for installed poll plugin before retrieving poll info on topic view --- e107_plugins/forum/forum_viewtopic.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e107_plugins/forum/forum_viewtopic.php b/e107_plugins/forum/forum_viewtopic.php index 665b5db54..aa33a14b5 100644 --- a/e107_plugins/forum/forum_viewtopic.php +++ b/e107_plugins/forum/forum_viewtopic.php @@ -145,6 +145,8 @@ if ($thread->message) //if (isset($thread->threadInfo['thread_options']['poll'])) //XXX Currently Failing - misconfigured thread-options. //{ +if(e107::isInstalled('poll')) +{ $_qry = 'SELECT * FROM `#polls` WHERE `poll_datestamp` = ' . $thread->threadId; if($sql->gen($_qry)) { @@ -155,6 +157,7 @@ if ($thread->message) $poll = new poll; $pollstr = "
" . $poll->render_poll($_qry, 'forum', 'query', true) . '
'; } +} //} //Load forum templates // FIXME - new template paths!