From a4bceabbbc5e3c9915cfa7a967740b1f285ac00f Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Tue, 28 Apr 2015 15:53:59 -0600 Subject: [PATCH] CRM-13283 - Change sanity check on severity now that severity can be 0 but not null --- CRM/Core/BAO/StatusPreference.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/StatusPreference.php b/CRM/Core/BAO/StatusPreference.php index cecec3ec20..7765c28f85 100644 --- a/CRM/Core/BAO/StatusPreference.php +++ b/CRM/Core/BAO/StatusPreference.php @@ -61,7 +61,7 @@ class CRM_Core_BAO_StatusPreference extends CRM_Core_DAO_StatusPreference { CRM_Core_Error::fatal(ts('You can not pass a severity level higher than 7.')); } // If severity is now blank, you have an invalid severity string. - if (!$params['ignore_severity']) { + if (is_null($params['ignore_severity'])) { CRM_Core_Error::fatal(ts('Invalid string passed as severity level.')); } -- 2.25.1