diff --git a/CHANGES.md b/CHANGES.md
index 035da1724fa9c9fd79a2dc04c695a09c8c47a068..d59dce1f72b3f60d8b7081cdc331aadf8a47b656 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -6,6 +6,7 @@ Changes
 
 ### Unreleased
 
+* 2021-03-13 - Bugfix: Option to output the information banner without any particular Bootstrap color was broken on the login page.
 * 2021-03-13 - Make Behat tests functional again on Github Actions.
 * 2021-03-13 - Bugfix: Unrestricted self enrolment hint did not respect existing but disabled enrolment instances.
 
diff --git a/layout/login.php b/layout/login.php
index eb719b2c3176cf46309e30bcc37a40023ed5dc3d..d3b9e85ad95ba0d7f74dda0b4a49dbb0d7a54c77 100644
--- a/layout/login.php
+++ b/layout/login.php
@@ -74,9 +74,7 @@ if ($timedibenable) {
     $timedibcontent = format_text(get_config('theme_boost_campus', 'timedibcontent'), FORMAT_HTML, $formatoptions);
     // Result of multiselect is a string divided by a comma, so exploding into an array.
     $timedibshowonpages = explode(",", get_config('theme_boost_campus', 'timedibshowonpages'));
-    if ($perpibcss != 'none') {
-        $timedibcss = get_config('theme_boost_campus', 'timedibcss');
-    }
+    $timedibcss = get_config('theme_boost_campus', 'timedibcss');
     $timedibstartsetting = get_config('theme_boost_campus', 'timedibstart');
     $timedibendsetting = get_config('theme_boost_campus', 'timedibend');
     // Get the current server time.
@@ -87,7 +85,9 @@ if ($timedibenable) {
 
     // Add the variables to the templatecontext array.
     $templatecontext['timedibcontent'] = $timedibcontent;
-    $templatecontext['timedibcss'] = $timedibcss;
+    if ($timedibcss != 'none') {
+        $templatecontext['timedibcss'] = $timedibcss;
+    }
     $templatecontext['timedinfobannershowonselectedpage'] = $timedinfobannershowonselectedpage;
 }
 // MODIFICATION END.