Browse Source

Fix capcodes in PHP7.2. Close #299

main
Fredrick Brennan 6 years ago
parent
commit
ac971f36d5
  1. 2
      inc/functions.php
  2. 4
      inc/mod/auth.php

2
inc/functions.php

@ -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);
}

4
inc/mod/auth.php

@ -212,8 +212,8 @@ function check_login($prompt = false) {
}
$mod = array(
'id' => $user['id'],
'type' => $user['type'],
'id' => (int)$user['id'],
'type' => (int)$user['type'],
'username' => $cookie[0],
'boards' => explode(',', $user['boards'])
);

Loading…
Cancel
Save