mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 03:09:21 +02:00
Merge pull request #46 from vsc55/master
Fix mysql error: Field 'grouptype' doesn't have a default value
This commit is contained in:
commit
3d5f284df6
@ -331,9 +331,10 @@ if ( isset($_POST['op']) )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Add new Group now!
|
// 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'] . "',
|
VALUES ( '" . $content['groupname'] . "',
|
||||||
'" . $content['groupdescription'] . "' )");
|
'" . $content['groupdescription'] . "',
|
||||||
|
0 )");
|
||||||
DB_FreeQuery($result);
|
DB_FreeQuery($result);
|
||||||
|
|
||||||
// Do the final redirect
|
// Do the final redirect
|
||||||
@ -523,4 +524,4 @@ $page -> parser($content, "admin/admin_groups.html");
|
|||||||
$page -> output();
|
$page -> output();
|
||||||
// ---
|
// ---
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user