[move]
This commit is contained in:
1 parent
750fed8a47
commit
970c6cd95b
4 files changed
+227
-2
No files matched your search
+2
-2
@@ -716,13 +716,13 @@ function post(array $post) {
|
||||
$query->bindValue(':password', $post['password']);
|
||||
$query->bindValue(':ip', isset($post['ip']) ? $post['ip'] : $_SERVER['REMOTE_ADDR']);
|
||||
|
||||
if ($post['mod'] && $post['sticky']) {
|
||||
if ($post['op'] && $post['mod'] && $post['sticky']) {
|
||||
$query->bindValue(':sticky', 1, PDO::PARAM_INT);
|
||||
} else {
|
||||
$query->bindValue(':sticky', 0, PDO::PARAM_INT);
|
||||
}
|
||||
|
||||
if ($post['mod'] && $post['locked']) {
|
||||
if ($post['op'] && $post['mod'] && $post['locked']) {
|
||||
$query->bindValue(':locked', 1, PDO::PARAM_INT);
|
||||
} else {
|
||||
$query->bindValue(':locked', 0, PDO::PARAM_INT);
|
||||
|
||||
Reference in new issue
Block a user