fix: mysql error: Field 'grouptype' doesn't have a default value

I have set "grouptype" to 0, but I don't know if it will be the appropriate value.
This commit is contained in:
Javier Pastor 2020-05-04 16:29:52 +02:00 committed by GitHub
parent e3e099680c
commit e63939b64e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -331,9 +331,10 @@ if ( isset($_POST['op']) )
else
{
// Add new Group now!
$result = DB_Query("INSERT INTO " . DB_GROUPS . " (groupname, groupdescription)
$result = DB_Query("INSERT INTO " . DB_GROUPS . " (groupname, groupdescription, grouptype)
VALUES ( '" . $content['groupname'] . "',
'" . $content['groupdescription'] . "' )");
'" . $content['groupdescription'] . "',
0 )");
DB_FreeQuery($result);
// Do the final redirect
@ -523,4 +524,4 @@ $page -> parser($content, "admin/admin_groups.html");
$page -> output();
// ---
?>
?>