From d57977121095a38fcd4c4b98d5ffab63c227a34c Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 2 Jan 2011 21:15:59 +1100 Subject: Mod stickies and redirects --- inc/functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'inc/functions.php') diff --git a/inc/functions.php b/inc/functions.php index 30effd17..76b44cb3 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -144,7 +144,12 @@ $query->bindValue(':time', time(), PDO::PARAM_INT); $query->bindValue(':password', $post['password']); $query->bindValue(':ip', $_SERVER['REMOTE_ADDR']); - $query->bindValue(':sticky', 0, PDO::PARAM_INT); + + if($post['mod'] && $post['sticky']) { + $query->bindValue(':sticky', 1, PDO::PARAM_INT); + } else { + $query->bindValue(':sticky', 0, PDO::PARAM_INT); + } if($OP) { // No parent thread, image -- cgit v1.3