Lock/Unlock thread bug in RC5 (Bugs)

by Otto, Thursday, September 11, 2008, 17:54 (5705 days ago)

It appears tha moderators cannot lock or unlock threads.

I think the error is in "posting.inc.php"

line 1465
// if user is authorized to lock:
if(isset(...) && ... || isset($_GET['lock']) && ...)

Should be
if(isset(...) && ... || isset($_GET['lock_thread']) && ...)

similarly a little bit below
// if user is authorized to lock:
if(isset(...) && ... || isset($_GET['lock']) && ...)

Should be
if(isset(...) && ... || isset($_GET['unlock_thread']) && ...)

Otto

locked
8209 views

Complete thread:

 RSS Feed of thread