Browse Source

Change capcode binding from int to string, needed for newer PHP support

pull/40/head
Benjamin Southall 5 years ago
parent
commit
66cfae8f3f
  1. 4
      inc/functions.php

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

Loading…
Cancel
Save