mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
Don't set default value for 'text' field
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/user_extended_class.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/user_extended_class.php,v $
|
||||||
| $Revision: 1.17 $
|
| $Revision: 1.18 $
|
||||||
| $Date: 2008-12-02 20:23:32 $
|
| $Date: 2008-12-10 13:14:51 $
|
||||||
| $Author: e107steved $
|
| $Author: mcfly_e107 $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -202,7 +202,7 @@ class e107_user_extended
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
if($type != EUF_DB_FIELD && $default != '')
|
if($type != EUF_DB_FIELD && $type != EUF_TEXTAREA && $default != '')
|
||||||
{
|
{
|
||||||
$default_text = " DEFAULT '".$tp -> toDB($default, true)."'";
|
$default_text = " DEFAULT '".$tp -> toDB($default, true)."'";
|
||||||
}
|
}
|
||||||
@@ -260,7 +260,7 @@ class e107_user_extended
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$sql->db_Select_gen("ALTER TABLE #user_extended ADD user_".$tp -> toDB($name, true)." ".$field_info);
|
$sql->db_Select_gen('ALTER TABLE #user_extended ADD user_'.$tp -> toDB($name, true).' '.$field_info);
|
||||||
$sql->db_Insert('user_extended_struct',"0,'".$tp -> toDB($name, true)."','".$tp -> toDB($text, true)."','".intval($type)."','".$tp -> toDB($parms, true)."','".$tp -> toDB($values, true)."', '".$tp -> toDB($default, true)."', '".intval($read)."', '".intval($write)."', '".intval($required)."', '0', '".intval($applicable)."', '".intval($order)."', '".intval($parent)."'");
|
$sql->db_Insert('user_extended_struct',"0,'".$tp -> toDB($name, true)."','".$tp -> toDB($text, true)."','".intval($type)."','".$tp -> toDB($parms, true)."','".$tp -> toDB($values, true)."', '".$tp -> toDB($default, true)."', '".intval($read)."', '".intval($write)."', '".intval($required)."', '0', '".intval($applicable)."', '".intval($order)."', '".intval($parent)."'");
|
||||||
if ($this->user_extended_field_exist($name))
|
if ($this->user_extended_field_exist($name))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user