Skip to content
Snippets Groups Projects
Commit 16327d7b authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Fixed undefined variables notices.

parent 14450ae7
Branches
Tags
No related merge requests found
......@@ -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.
......
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment