Skip to content

Commit

Permalink
fix: undefined module id
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasNorin committed Feb 15, 2024
1 parent 0db0aed commit 6762bd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/php/Module/Event/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ public function data(): array

// Cards module data
$data['settings'] = $data;
$data['ID'] = $this->ID ?? uniqid();

$this->template = !empty($data['mod_event_display']) ? $data['mod_event_display'] : 'list';
$this->template = !empty($data['mod_event_display']) ? $data['mod_event_display'] : 'list';

$data['template'] = $this->template;
$data['post_id'] = $post->ID;
Expand Down

0 comments on commit 6762bd6

Please sign in to comment.