From: Mathieu Lutfy Date: Wed, 29 Apr 2015 15:59:22 +0000 (-0400) Subject: CRM-14588: Format date fields in contribution confirm page (fix for PHP 5.3 compat). X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5435679b578f4908b5c309bcbd940b6a25f1944f;p=civicrm-core.git CRM-14588: Format date fields in contribution confirm page (fix for PHP 5.3 compat). --- 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); }