summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-01-02 21:15:59 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-01-02 21:15:59 +1100
commitd57977121095a38fcd4c4b98d5ffab63c227a34c (patch)
tree817e24a4a698bc487705efb70d7d6252ec4606b7 /inc/functions.php
parent13cd22e32405e7fceb80e12699616829ac0002df (diff)
Mod stickies and redirects
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php7
1 files changed, 6 insertions, 1 deletions
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