From cefeceeff0b3596cadc97da118f2100f2d7498da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 18 Oct 2006 08:09:03 +0000 Subject: [PATCH] fix behaviour when invalid string is specified --- libraries/transformations/text_plain__dateformat.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/transformations/text_plain__dateformat.inc.php b/libraries/transformations/text_plain__dateformat.inc.php index 0a2babac0..4bc2b3d28 100644 --- a/libraries/transformations/text_plain__dateformat.inc.php +++ b/libraries/transformations/text_plain__dateformat.inc.php @@ -69,6 +69,8 @@ function PMA_transformation_text_plain__dateformat($buffer, $options = array(), $text = PMA_localisedDate($timestamp, $options[1]); } elseif ($options[2] == 'utc') { $text = gmdate($options[1], $timestamp); + } else { + $text = 'INVALID DATE TYPE'; } $buffer = '' . $text . ''; }