Field permissions cannot be null

This commit is contained in:
Ilia Rostovtsev
2020-10-16 14:54:37 +03:00
parent a0233341d5
commit 6a146e1471

View File

@@ -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'});