diff --git a/inc/functions.php b/inc/functions.php index dcce3d37..a62e67ab 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1007,8 +1007,8 @@ function deletePost($id, $error_if_doesnt_exist=true, $rebuild_after=true) { $query->execute() or error(db_error($query)); if (isset($rebuild) && $rebuild_after) { - buildIndex(); buildThread($rebuild); + buildIndex(); } return true;