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);