Skip to content

Commit

Permalink
Fix error message reporting deleted annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Feb 19, 2021
1 parent 2a442a7 commit 9a2abbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion www/docs/report/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@

if ($COMMENT->exists() == false || !$COMMENT->visible()) {
// This comment id didn't exist in the DB.
trigger_error("There is no annotation with an ID of '" . _htmlentities($comment_id) . "'.", E_USER_NOTICE);
$PAGE->error_message("There is no annotation with that ID");
$PAGE->stripe_end();
$PAGE->page_end();
exit;
}

// OK, we've got a valid comment ID.
Expand Down

0 comments on commit 9a2abbe

Please sign in to comment.