diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-02 22:30:49 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-02 22:30:49 +1100 |
| commit | 0fc51119ded6767c91a02239dbeead844249aa03 (patch) | |
| tree | bacb0bc15ad65b83c6eaa9367ce70c8a9f9bd41a | |
| parent | 97e927bef9e5c69ece8f1c78c5dfe1b16493c842 (diff) | |
Fixed bug allowing lock of non-OP posts
| -rw-r--r-- | post.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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']) { |
