This mod breaks announcements. I get this error when I try to view one with the hook enabled:
===================================================
Date: Sat, 27 Jun 2009 09:24:37 +0000
Error Number: 1064
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
IP Address: ...
Page: /forum-1/announcement-4-.../
Debug: array (
1 =>
array (
'file' => '/home/.../public_html/.../ips_kernel/classDb.php',
'line' => 982,
'function' => 'query',
'class' => 'db_driver_mysql',
),
4 =>
array (
'file' => '/home/.../public_html/.../admin/sources/classes/output/publicOutput.php',
'line' => 2773,
'function' => 'getOutput',
'class' => 'tviewedby',
),
5 =>
array (
'file' => '/home/.../public_html/.../admin/sources/classes/output/publicOutput.php',
'line' => 2101,
'function' => 'templateHooks',
'class' => 'output',
),
6 =>
array (
'file' => '/home/.../public_html/.../admin/applications/forums/modules_public/forums/announcements.php',
'line' => 175,
'function' => 'sendOutput',
'class' => 'output',
),
7 =>
array (
'file' => '/home/.../public_html/.../admin/sources/base/ipsController.php',
'line' => 291,
'function' => 'doExecute',
'class' => 'public_forums_forums_announcements',
),
)
mySQL query error: SELECT id, member_id, tid FROM ibf_topic_viewedby WHERE member_id=52 and tid=
Disabling the hook or just setting it to not display this list fixes the problem.