diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2019-02-26 11:01:19 +1000 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2019-02-26 11:01:19 +1000 |
| commit | 66cfae8f3f85b897cf9d9e5984e981bf1204833f (patch) | |
| tree | 36b4db9a30a565ebf19cb227468b0feac802b0af | |
| parent | b9d75cdf11e39a8f46bd1441e75e0c0745fb1753 (diff) | |
Change capcode binding from int to string, needed for newer PHP support
| -rwxr-xr-x | inc/functions.php | 4 |
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); |
