From bc84da84d06bd02eed51a7c982fe40e4f2d57e36 Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Mon, 27 Apr 2015 16:40:09 -0600 Subject: [PATCH] CRM-13283 - lowercase minimum_report_severity strings --- CRM/Utils/Check.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Utils/Check.php b/CRM/Utils/Check.php index f1ed405385..0d33f20782 100644 --- a/CRM/Utils/Check.php +++ b/CRM/Utils/Check.php @@ -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, -- 2.25.1