fix behaviour when invalid string is specified

This commit is contained in:
Michal Čihař
2006-10-18 08:09:03 +00:00
parent 382d60402a
commit cefeceeff0

View File

@@ -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 = '<dfn onclick="alert(\'' . $source . '\');" title="' . $source . '">' . $text . '</dfn>';
}