Skip to content

Commit

Permalink
fix: backwards compability
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Feb 11, 2025
1 parent 8e85bce commit ac66a28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/php/Component/Notice/Notice.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ public function init()
//Extract array for eazy access (fetch only)
extract($this->data);

// Backwards compatibility
$data['action']['text'] ??= ($data['action']['label'] ?? '');

if (empty($id)) {
$this->data['id'] = uniqid();
}
Expand Down

0 comments on commit ac66a28

Please sign in to comment.