diff options
| author | czaks <marcin@6irc.net> | 2015-03-10 13:52:31 +0100 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-03-10 13:52:31 +0100 |
| commit | 9f34d334d3d45471ab88fc90a702999cd2cf6bf5 (patch) | |
| tree | 151a4b1ba56640c914dc620694b66c2614665ce6 /inc/functions.php | |
| parent | 2f7aeec53128b08e000e89bc031f25c0501565f3 (diff) | |
..
Diffstat (limited to 'inc/functions.php')
| -rwxr-xr-x | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index 6880ad44..1beb7f6e 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -1085,7 +1085,7 @@ function deletePost($id, $error_if_doesnt_exist=true, $rebuild_after=true) { global $board, $config; // Select post and replies (if thread) in one query - $query = prepare(sprintf("SELECT `id`,`thread`,`files` FROM ``posts_%s`` WHERE `id` = :id OR `thread` = :id", $board['uri'])); + $query = prepare(sprintf("SELECT `id`,`thread`,`files`,`slug` FROM ``posts_%s`` WHERE `id` = :id OR `thread` = :id", $board['uri'])); $query->bindValue(':id', $id, PDO::PARAM_INT); $query->execute() or error(db_error($query)); |
