CRM-13283 - lowercase minimum_report_severity strings
authorJon goldberg <jon@palantetech.coop>
Mon, 27 Apr 2015 22:40:09 +0000 (16:40 -0600)
committerJon goldberg <jon@palantetech.coop>
Tue, 21 Jul 2015 20:37:37 +0000 (16:37 -0400)
CRM/Utils/Check.php

index f1ed405385f4fdf26bc74c1ba5399b4c84aeb1bf..0d33f20782675127013721e8d62ca1efebcb6dfe 100644 (file)
@@ -131,6 +131,11 @@ class CRM_Utils_Check {
    * @return bool
    */
   public static function severityMap($severity, $reverse = FALSE) {
+    // Lowercase string-based severities
+    if (!$reverse) {
+      $severity = strtolower($severity);
+    }
+
     // See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
     $levels = array(
       \Psr\Log\LogLevel::EMERGENCY => 7,