From a9084944d2eed113e82bb8f564403fec90872c26 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 2 Nov 2020 10:41:39 -0800 Subject: [PATCH] Fixes #4257 - Plugin Builder field type detection fix. --- e107_admin/plugin.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/e107_admin/plugin.php b/e107_admin/plugin.php index f31989135..03905c4b6 100755 --- a/e107_admin/plugin.php +++ b/e107_admin/plugin.php @@ -5026,11 +5026,10 @@ TEMPLATE; $strings = array('time','timestamp','datetime','year','tinyblob','blob', 'mediumblob','longblob','tinytext','mediumtext','longtext','text','date'); + + $type = strtolower($type); - - - - if(in_array(strtolower($type),$strings)) + if(in_array($type,$strings)) { $value = 'str'; } @@ -5043,8 +5042,6 @@ TEMPLATE; $value = 'int'; } - - $fname = $this->table."[fields][".$name."][data]";