Skip to content

Commit

Permalink
Blog: Page doesn't automatically redirect after deleting post #603249
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanoil Manoylov authored and sammarshallou committed Jan 3, 2023
1 parent e49e1ed commit d0de9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deletepost.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function oublog_do_delete($course, $cm, $oublog, $post) {
array(), $post->visibility)) {
print_error('tagupdatefailed', 'oublog');
}
if (oublog_search_installed()) {
if (oublog_search_installed() && !local_ousearch_indexingdisabled()) {
$doc = oublog_get_search_document($updatepost, $cm);
$doc->delete();
}
Expand Down

0 comments on commit d0de9c6

Please sign in to comment.