Merge pull request #46 from vsc55/master

Fix mysql error: Field 'grouptype' doesn't have a default value
This commit is contained in:
Andre Lorbach 2020-05-05 16:16:42 +02:00 committed by GitHub
commit 3d5f284df6
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();
// ---
?>
?>