diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-12 23:23:47 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-12 23:23:47 +1000 |
| commit | 95709e7588b9fb5a2e43049e0157cedc254b2536 (patch) | |
| tree | e7732391f27c6789b00de0dad9b1b98d4d2d0b66 /post.php | |
| parent | c39c54c2c2764596863e43a6d6ee4b07b52af327 (diff) | |
Removed `board`.`id`. Use the board URI/name at the key instead.
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -126,7 +126,7 @@ if(isset($_POST['delete'])) { $query = prepare("INSERT INTO `reports` VALUES (NULL, :time, :ip, :board, :post, :reason)"); $query->bindValue(':time', time(), PDO::PARAM_INT); $query->bindValue(':ip', $_SERVER['REMOTE_ADDR'], PDO::PARAM_STR); - $query->bindValue(':board', $board['id'], PDO::PARAM_INT); + $query->bindValue(':board', $board['uri'], PDO::PARAM_INT); $query->bindValue(':post', $id, PDO::PARAM_INT); $query->bindValue(':reason', $reason, PDO::PARAM_STR); $query->execute() or error(db_error($query)); |
