diff --git a/include/class.forms.php b/include/class.forms.php
index 0b54f965ed71154c1606305cc00ef0537ca2be69..937a999a4eb052e6ad70d7bd0a241d18b5918e61 100644
--- a/include/class.forms.php
+++ b/include/class.forms.php
@@ -1480,8 +1480,7 @@ class TextboxField extends FormField {
     }
 
     function display($value) {
-        $value = $value ?: $this->value;
-        return ($value == 0) ? '&#48' : Format::htmlchars($this->toString($value));
+        return ($value == '0') ? '&#48' : Format::htmlchars($this->toString($value ?: $this->value));
     }
 }