diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2019-08-31 01:51:56 +1000 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2019-08-31 01:51:56 +1000 |
| commit | a666b044a9cda2816a6251b6367eb38f9876b17e (patch) | |
| tree | a60316439bff68b94ccd679446eefc60664848c1 /inc | |
| parent | 391f63e31f4b254bdc1d5c1a2e4c81d80acb767d (diff) | |
Fixes delete board regression thanks, as per https://github.com/Circlepuller/Tinyboard/commit/31e27a51c20ccceb59ed20c8cac829bfac1ce710
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/mod/pages.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 93e2e033..650f854d 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -374,12 +374,12 @@ function mod_edit_board($boardName) { // Clear reports $query = prepare('DELETE FROM ``reports`` WHERE `board` = :id'); - $query->bindValue(':id', $board['uri'], PDO::PARAM_INT); + $query->bindValue(':id', $board['uri'], PDO::PARAM_STR); $query->execute() or error(db_error($query)); // Delete from table $query = prepare('DELETE FROM ``boards`` WHERE `uri` = :uri'); - $query->bindValue(':uri', $board['uri'], PDO::PARAM_INT); + $query->bindValue(':uri', $board['uri'], PDO::PARAM_STR); $query->execute() or error(db_error($query)); $query = prepare("SELECT `board`, `post` FROM ``cites`` WHERE `target_board` = :board ORDER BY `board`"); |
