Change capcode binding from int to string, needed for newer PHP support
This commit is contained in:
parent
b9d75cdf11
commit
66cfae8f3f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue