mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 18:59:12 +02:00
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:
parent
e3e099680c
commit
e63939b64e
@ -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();
|
||||
// ---
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user