Skip to content

Commit

Permalink
Set empty heading if undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Aug 25, 2023
1 parent 8bb28aa commit cb950fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/php/Component/Image/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public function init()
//Inherit the caption text
if (empty($heading) && $caption) {
$this->data['heading'] = $caption;
} else {
$this->data['heading'] = "";
}

if (empty($isPanel)) {
Expand Down

0 comments on commit cb950fc

Please sign in to comment.