1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

Fix for User-Extended checkbox field creation.

This commit is contained in:
Cameron
2016-04-02 12:47:27 -07:00
parent 46b2518e82
commit fb3a92ff9e
5 changed files with 36 additions and 7 deletions

View File

@@ -470,7 +470,7 @@ class e107_user_extended
{
return false;
}
switch ($type)
{
case EUF_INTEGER :
@@ -506,7 +506,7 @@ class e107_user_extended
break;
}
if($type != EUF_DB_FIELD && $type != EUF_TEXTAREA && $default != '')
if($type != EUF_DB_FIELD && ($type != EUF_TEXTAREA) && ($type != EUF_CHECKBOX) && !empty($default))
{
$default_text = " DEFAULT '".$tp -> toDB($default, true)."'";
}