]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db/field.php
authorDevops <sys@15gifts.com>
Wed, 5 Jul 2017 10:32:33 +0000 (11:32 +0100)
committerDevops <sys@15gifts.com>
Wed, 5 Jul 2017 10:32:33 +0000 (11:32 +0100)
lib/php/db/field.php

index a73b8e1a9583de96c9218bee1fba8a5c62f8928d..5c6d36bc45c86f63957ed5c06b203eb81c1344b1 100644 (file)
@@ -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) {