LSP: bugfix - dont break in case of empty stream or protocol objects

This commit is contained in:
cat 2014-01-02 14:03:08 +01:00
parent 0e440231a3
commit 4e03805671
2 changed files with 3 additions and 0 deletions

View file

@ -365,6 +365,7 @@ function updateOverview() {
}
function updateProtocols() {
getData(function(data){
if (!data.config.protocols) { data.config.protocols = []; }
if (data.config.protocols.length != $('#protocols-tbody').children().length) {
saveAndReload('protocols');
return;