diff --git a/forms/TimeField.php b/forms/TimeField.php
index 40772ba95..775c72aba 100755
--- a/forms/TimeField.php
+++ b/forms/TimeField.php
@@ -57,14 +57,13 @@ class TimeField extends TextField {
* The readonly class for our TimeField
*/
class TimeField_Readonly extends TimeField {
- function Field() {
- $extraClass = $this->extraClass();
- $fieldSize = $this->maxLength ? min( $this->maxLength, 30 ) : 30;
- if($this->maxLength) {
- return "id() . "\" name=\"{$this->name}\" value=\"" . $this->attrValue() . "\" maxlength=\"$this->maxLength\" size=\"$fieldSize\" />";
- } else {
- return "id() . "\" name=\"{$this->name}\" value=\"" . $this->attrValue() . "\" />";
- }
- }
+ function Field() {
+ if( $this->value )
+ $val = $this->attrValue();
+ else
+ $val = '(not set)';
+
+ return "id() . "\">$val";
+ }
}
\ No newline at end of file