diff --git a/lsp/main.js b/lsp/main.js index 0c8f3f82..c2d4b2ed 100644 --- a/lsp/main.js +++ b/lsp/main.js @@ -614,8 +614,13 @@ }; $('input').each(function(){ - newprotocol[$(this).attr('id').split('-')[2]] = $(this).val();; + + if($(this).val() != '') + { + newprotocol[$(this).attr('id').split('-')[2]] = $(this).val(); + } }); + newprotocol.online = -1; if (streamname == 'new') { settings.settings.config.protocols.push(newprotocol);