From 6ad0a62124e1c127ef3d283d813b2336dab7cf61 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20J=2E=20G=C3=B3mez?= Date: Mon, 29 May 2017 11:45:56 -0400 Subject: [PATCH] CRM-21238 Revert "CRM-20653: Allow non-truthy defaults for retrieval of request parameters." This reverts commit f73ad9b6ec94e5ffcf61dcbec941c43a2a8da924. --- CRM/Utils/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Request.php b/CRM/Utils/Request.php index e6ce18b0c8..2748e07d7d 100644 --- a/CRM/Utils/Request.php +++ b/CRM/Utils/Request.php @@ -120,7 +120,7 @@ class CRM_Utils_Request { CRM_Core_Error::fatal(ts("Could not find valid value for %1", array(1 => $name))); } - if (!isset($value)) { + if (!isset($value) && $default) { $value = $default; } -- 2.25.1