summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2019-02-26 11:01:19 +1000
committerBenjamin Southall <applemansigloo@gmail.com>2019-02-26 11:01:19 +1000
commit66cfae8f3f85b897cf9d9e5984e981bf1204833f (patch)
tree36b4db9a30a565ebf19cb227468b0feac802b0af /inc/functions.php
parentb9d75cdf11e39a8f46bd1441e75e0c0745fb1753 (diff)
Change capcode binding from int to string, needed for newer PHP support
Diffstat (limited to 'inc/functions.php')
-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);