Fix capcodes in PHP7.2. Close #299
This commit is contained in:
@@ -1074,7 +1074,7 @@ 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 {
|
||||
$query->bindValue(':capcode', null, PDO::PARAM_NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user