diff options
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/network.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index d6a97408a2..fb23fba857 100644 --- a/modules/luci-base/htdocs/luci-static/resources/network.js +++ b/modules/luci-base/htdocs/luci-static/resources/network.js @@ -678,7 +678,7 @@ Network = L.Class.extend({ registerErrorCode: function(code, message) { if (typeof(code) == 'string' && typeof(message) == 'string' && - proto_errors.hasOwnProperty(code)) { + !proto_errors.hasOwnProperty(code)) { proto_errors[code] = message; return true; } |