From 16327d7b36654eed33eca611b45209a07e0c9c58 Mon Sep 17 00:00:00 2001
From: Kathrin Osswald <kathrin.osswald@uni-ulm.de>
Date: Wed, 12 Aug 2020 14:00:13 +0200
Subject: [PATCH] Fixed undefined variables notices.

---
 CHANGES.md   | 1 +
 locallib.php | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/CHANGES.md b/CHANGES.md
index 3694a00..089a850 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -6,6 +6,7 @@ Changes
 
 ### Unreleased
 
+* 2020-08-12 - Fixed undefined variables notices.
 * 2020-08-11 - Added setting to be able to show a hint for a unrestricted self enrolment in a visible course.
                NOTE: Capability theme/boost_campus:viewhintcourseselfenrol introduced.
 * 2020-08-07 - Added rule to show description border for all users for restricted activities.
diff --git a/locallib.php b/locallib.php
index a449046..a0a6126 100644
--- a/locallib.php
+++ b/locallib.php
@@ -499,13 +499,17 @@ function theme_boost_campus_show_timed_banner_on_selected_page($now, $timedibsho
     // Check if time settings are empty and try to convert the time string_s_ to a unix timestamp.
     if (empty($timedibstartsetting)) {
         $timedibstartempty = true;
+        $timedibstart = 0;
     } else {
         $timedibstart = strtotime($timedibstartsetting);
+        $timedibstartempty = false;
     }
     if (empty($timedibendsetting)) {
         $timedibendempty = true;
+        $timedibend = 0;
     } else {
         $timedibend = strtotime($timedibendsetting);
+        $timedibendempty = false;
     }
 
     // Add the time check:
-- 
GitLab