From 3f23ecf4fe36d847daca394d990259099316ca05 Mon Sep 17 00:00:00 2001 From: Devops Date: Wed, 5 Jul 2017 11:32:33 +0100 Subject: [PATCH] lib/php/db/field.php --- lib/php/db/field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/php/db/field.php b/lib/php/db/field.php index a73b8e1a..5c6d36bc 100644 --- a/lib/php/db/field.php +++ b/lib/php/db/field.php @@ -103,7 +103,7 @@ class field extends nb { public function html_edit($value,$type=null) { $size = ($this->size() and is_scalar($this->size())) ? $this->size() : 0; - $tag = ( ($size>$this->textarea_size) or preg_match('/^(text|binary|blob)/i',$this->type) ) ? 'textarea' : 'input'; + $tag = ( ($size>$this->textarea_size) or preg_match('/^(\w*text|binary|blob)/i',$this->type) ) ? 'textarea' : 'input'; $html = ''; if ($this->extras) { -- 2.47.3