mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Field permissions cannot be null
This commit is contained in:
@@ -38,7 +38,7 @@ else {
|
||||
$in{'host_def'} ? '%' : $in{'host'},
|
||||
$d,
|
||||
$in{'user_def'} ? '' : $in{'user'},
|
||||
$t, $in{'field'}, $in{'perms'});
|
||||
$t, $in{'field'}, $in{'perms'} || '');
|
||||
}
|
||||
else {
|
||||
# Update existing column permissions
|
||||
@@ -51,7 +51,7 @@ else {
|
||||
&execute_sql_logged($master_db, $sql,
|
||||
$in{'host_def'} ? '%' : $in{'host'},
|
||||
$in{'user_def'} ? '' : $in{'user'},
|
||||
$in{'field'}, $in{'perms'},
|
||||
$in{'field'}, $in{'perms'} || '',
|
||||
$in{'oldhost'}, $in{'olddb'},
|
||||
$in{'olduser'}, $in{'oldtable'},
|
||||
$in{'oldfield'});
|
||||
|
||||
Reference in New Issue
Block a user