summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-01-02 22:30:49 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-01-02 22:30:49 +1100
commit0fc51119ded6767c91a02239dbeead844249aa03 (patch)
treebacb0bc15ad65b83c6eaa9367ce70c8a9f9bd41a
parent97e927bef9e5c69ece8f1c78c5dfe1b16493c842 (diff)
Fixed bug allowing lock of non-OP posts
-rw-r--r--post.php4
1 files 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']) {