From 396363153797a99369d1f1d52eec40e5fa48c11b Mon Sep 17 00:00:00 2001 From: otrok7 <50595291+otrok7@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:54:21 +0200 Subject: [PATCH] fix array key not defined warning. --- bmlt-meeting-list.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bmlt-meeting-list.php b/bmlt-meeting-list.php index 9273515..5de1ca9 100644 --- a/bmlt-meeting-list.php +++ b/bmlt-meeting-list.php @@ -2665,7 +2665,8 @@ function fillUnsetOptions() } } $this->fillUnsetArrayOption('authors', []); - $my_footer = $this->translate[$this->options['weekday_language']]['PAGE'].' {PAGENO}'; + $my_footer = isset($this->translate[$this->options['weekday_language']]) ? + $this->translate[$this->options['weekday_language']]['PAGE'].' {PAGENO}' : '{PAGENO}'; $this->fillUnsetStringOption('nonmeeting_footer', $my_footer); $this->fillUnsetStringOption('meeting1_footer', $this->options['nonmeeting_footer']); $this->fillUnsetStringOption('meeting2_footer', $this->options['nonmeeting_footer']);