Neither table nor field permissions can be null

This commit is contained in:
Ilia Rostovtsev
2020-10-16 14:08:58 +03:00
parent 5b33741e67
commit a0233341d5

View File

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