mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Neither table nor field permissions can be null
This commit is contained in:
@@ -38,7 +38,7 @@ else {
|
|||||||
$in{'db'},
|
$in{'db'},
|
||||||
$in{'user_def'} ? '' : $in{'user'},
|
$in{'user_def'} ? '' : $in{'user'},
|
||||||
$in{'table'}, $config{'login'} || "root",
|
$in{'table'}, $config{'login'} || "root",
|
||||||
$in{'perms1'}, $in{'perms2'});
|
$in{'perms1'} || '', $in{'perms2'} || '');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
# Update existing table permissions
|
# Update existing table permissions
|
||||||
@@ -51,7 +51,7 @@ else {
|
|||||||
&execute_sql_logged($master_db, $sql,
|
&execute_sql_logged($master_db, $sql,
|
||||||
$in{'host_def'} ? '%' : $in{'host'},
|
$in{'host_def'} ? '%' : $in{'host'},
|
||||||
$in{'user_def'} ? '' : $in{'user'},
|
$in{'user_def'} ? '' : $in{'user'},
|
||||||
$in{'table'}, $in{'perms1'}, $in{'perms2'},
|
$in{'table'}, $in{'perms1'} || '', $in{'perms2'} || '',
|
||||||
$in{'oldhost'}, $in{'olddb'},
|
$in{'oldhost'}, $in{'olddb'},
|
||||||
$in{'olduser'}, $in{'oldtable'});
|
$in{'olduser'}, $in{'oldtable'});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user