From 5435679b578f4908b5c309bcbd940b6a25f1944f Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Wed, 29 Apr 2015 11:59:22 -0400 Subject: [PATCH] CRM-14588: Format date fields in contribution confirm page (fix for PHP 5.3 compat). --- CRM/Core/Form/Renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Form/Renderer.php b/CRM/Core/Form/Renderer.php index 054ae09f98..ca9967de0b 100644 --- a/CRM/Core/Form/Renderer.php +++ b/CRM/Core/Form/Renderer.php @@ -120,7 +120,7 @@ class CRM_Core_Form_Renderer extends HTML_QuickForm_Renderer_ArraySmarty { if ($element->getAttribute('data-api-entity') && $element->getAttribute('data-entity-value')) { $this->renderFrozenEntityRef($el, $element); } - elseif ($element->getAttribute('type') == 'text' && !empty($element->getAttribute('format'))) { + elseif ($element->getAttribute('type') == 'text' && $element->getAttribute('format')) { $this->renderFrozenDate($el, $element); } -- 2.25.1