Skip to content

Commit

Permalink
fix(question): show error message on deletion failure
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jan 31, 2022
1 parent 356a4e1 commit 0f5b49f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ajax/question_delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
$questionId = (int) $_REQUEST['id'];
$question = new PluginFormcreatorQuestion();
if (!$question->getFromDB($questionId)) {
echo __('Question not found', 'formcreator');
http_response_code(404);
exit;
}
Expand Down

0 comments on commit 0f5b49f

Please sign in to comment.