Fixed bug allowing lock of non-OP posts

This commit is contained in:
Savetheinternet 2011-01-02 22:30:49 +11:00
parent 97e927bef9
commit 0fc51119de

View File

@ -92,8 +92,8 @@
error(ERROR_NOTAMOD); error(ERROR_NOTAMOD);
} }
$post['sticky'] = isset($_POST['sticky']); $post['sticky'] = $OP && isset($_POST['sticky']);
$post['locked'] = isset($_POST['lock']); $post['locked'] = $OP && isset($_POST['lock']);
} }
if($post['has_file']) { if($post['has_file']) {