Merge pull request #2203 from Lupul/patch-4

fix: setting user port permissions fails
This commit is contained in:
Neil Lathwood
2015-10-26 15:06:01 +00:00

View File

@ -36,7 +36,7 @@ else {
if ($vars['action'] == 'addifperm') {
if (!dbFetchCell('SELECT COUNT(*) FROM ports_perms WHERE `port_id` = ? AND `user_id` = ?', array($vars['port_id'], $vars['user_id']))) {
dbInsert(array('port_id' => $vars['port_id'], 'user_id' => $vars['user_id']), 'ports_perms');
dbInsert(array('port_id' => $vars['port_id'], 'user_id' => $vars['user_id'], 'access_level' => 0), 'ports_perms');
}
}