summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rwxr-xr-xinc/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 0b4ddaee..d77149bd 100755
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -1045,10 +1045,10 @@ function post(array $post) {
}
if ($post['mod'] && isset($post['capcode']) && $post['capcode']) {
- $query->bindValue(':capcode', $post['capcode'], PDO::PARAM_INT);
+ $query->bindValue(':capcode', $post['capcode'], PDO::PARAM_STR);
} else {
if ($config['joke_capcode'] && isset($post['capcode']) && $post['capcode'] === 'joke') {
- $query->bindValue(':capcode', $post['capcode'], PDO::PARAM_INT);
+ $query->bindValue(':capcode', $post['capcode'], PDO::PARAM_STR);
}
else {
$query->bindValue(':capcode', null, PDO::PARAM_NULL);