forked from leftypol/leftypol
Fixed bug allowing lock of non-OP posts
This commit is contained in:
parent
97e927bef9
commit
0fc51119de
1 changed files with 2 additions and 2 deletions
4
post.php
4
post.php
|
@ -92,8 +92,8 @@
|
|||
error(ERROR_NOTAMOD);
|
||||
}
|
||||
|
||||
$post['sticky'] = isset($_POST['sticky']);
|
||||
$post['locked'] = isset($_POST['lock']);
|
||||
$post['sticky'] = $OP && isset($_POST['sticky']);
|
||||
$post['locked'] = $OP && isset($_POST['lock']);
|
||||
}
|
||||
|
||||
if($post['has_file']) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue