mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-29 06:36:51 +01:00
Fix when adding poll = template tibiacom broken
With Exception and red message
This commit is contained in:
@@ -6,7 +6,7 @@ if(PAGE !== 'news') {
|
||||
|
||||
$poll = $db->query('SELECT `id`, `question` FROM `z_polls` WHERE end > ' . time() . ' ORDER BY `end` LIMIT 1');
|
||||
if($poll->rowCount() > 0) {
|
||||
$poll = $poll->fetch();
|
||||
$poll = $poll->fetch(PDO::FETCH_ASSOC);
|
||||
$twig->display('poll.html.twig', array(
|
||||
'poll' => $poll
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user