diff --git a/lib/environmentlib.php b/lib/environmentlib.php
index <HASH>..<HASH> 100644
--- a/lib/environmentlib.php
+++ b/lib/environmentlib.php
@@ -630,8 +630,8 @@ function environment_check_database($version) {
  */
 function process_environment_bypass($xml, &$result) {
 
-/// Only try to bypass if we were in error
-    if ($result->getStatus()) {
+/// Only try to bypass if we were in error and it was required
+    if ($result->getStatus() || $result->getLevel() == 'optional') {
         return;
     }
We only allow to bypass "required" checks.