Skip to content

Commit

Permalink
Removed empty paragraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
kreut committed Mar 16, 2023
1 parent f4ff76e commit c0f4806
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/QuestionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,7 @@ function store(StoreQuestionRequest $request,

$data['non_technology'] = $non_technology_text !== '';
$data['non_technology_html'] = $non_technology_text ?: null;
$data['non_technology_html'] = str_replace('<p>&nbsp;</p>','',$data['non_technology_html']);
if ($is_update) {
if ($data['technology'] !== 'h5p') {
$data['h5p_type'] = null;
Expand Down

0 comments on commit c0f4806

Please sign in to comment.