From 0fc51119ded6767c91a02239dbeead844249aa03 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 2 Jan 2011 22:30:49 +1100 Subject: [PATCH] Fixed bug allowing lock of non-OP posts --- post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post.php b/post.php index 1cae8714..56bddd5d 100644 --- a/post.php +++ b/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']) {