From: Jon goldberg Date: Mon, 27 Apr 2015 22:40:09 +0000 (-0600) Subject: CRM-13283 - lowercase minimum_report_severity strings X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bc84da84d06bd02eed51a7c982fe40e4f2d57e36;p=civicrm-core.git CRM-13283 - lowercase minimum_report_severity strings --- 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,