From 7536a1b619396cca8dc7c70bc7365f44fe76a8af Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 6 Dec 2011 14:39:46 +1100 Subject: [PATCH] clear tracked cites when deleting board --- mod.php | 4 ++++ 1 file changed, 4 insertions(+) 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']);