Warning: The author of this contribution does not provide support for it anymore.

Subject Prefix

SQL Error when message to short - Subject Prefix

SQL Error when message to short

by heinrich_k » Mon Feb 27, 2012 1:09 pm

I added in line 482 the code if (is_numeric($data['topic_id'])) to the SQL-commandm because when the message is to short, the there is no topic_id and that will cause an error.

It isn't the best way to do this, though. I usually would look it a "message to short" array was triggered, but I couldn't find a matching syntax for that.

Anyone any ideas ?
Registered User
Posts: 190
Joined: Fri Jul 17, 2009 11:40 am

Re: SQL Error when message to short

by postcd » Sat Oct 08, 2016 12:27 pm

Thank You for sharing your work around, it worked.
Edit includes/hooks/hook_subject_prefix.php
find line on the bottom of the file: sp_hook::register($phpbb_hook);
paste this line on the line before it: if (is_numeric($data['topic_id']))
I have Health Forum and also webmaster Hosting Forum. Interested in making money? Try money maker forum.
User avatar
Registered User
Posts: 83
Joined: Sun Oct 14, 2007 3:42 pm