summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod.php b/mod.php
index f26174d4..f68e1dfc 100644
--- a/mod.php
+++ b/mod.php
@@ -1451,6 +1451,10 @@
cache::delete('all_boards');
}
+ $query = prepare("DELETE FROM `cites` WHERE `board` = :board OR `target_board` = :board");
+ $query->bindValue(':board', $board['uri']);
+ $query->execute() or error(db_error($query));
+
rebuildThemes('boards');
header('Location: ?/', true, $config['redirect_http']);