From 66cfae8f3f85b897cf9d9e5984e981bf1204833f Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Tue, 26 Feb 2019 11:01:19 +1000 Subject: [PATCH] Change capcode binding from int to string, needed for newer PHP support --- inc/functions.php | 4 ++-- 1 file 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);