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:
@@ -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)."'";
|
||||
}
|
||||
|
Reference in New Issue
Block a user