SMF 2.0 - Quote issues - Post.php

Started by greyknight17, September 30, 2007, 03:35:24 PM

Previous topic - Next topic

greyknight17

Whenever a regular member (admin works) tries to quote someone's post, it's giving errors like the below in the error log:

Quotehttp://.../index.php?action=quotefast;quote=22313;sesc;xml

Database 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 '))
LIMIT 1' at line 7

File: ..../Sources/Post.php
Line: 2204

I opened up Post.php and replaced:

AND (t.locked = 0 OR b.id_board IN (' . implode(', ', $moderate_boards) . '))') . "

With:

AND (t.locked = 0' . (empty($moderate_boards) ? '' : ' OR b.ID_BOARD IN (' . implode(', ', $moderate_boards) . ')') . ')') . "

That seems to have resolved the problem.

SleePy

Use the bug tracker :P

BTW, in 2.0 beta 1 or 2.0 beta 1.1?
Or are you using the latest cvs?
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

nitins60

The problem is also existing in SMF 1.1.x series. It's not yet solved in 1.1.4  :'(

Advertisement: