diff --git a/deluge/ui/web/js/deluge-all/UI.js b/deluge/ui/web/js/deluge-all/UI.js index b4305c06f..08774afc2 100644 --- a/deluge/ui/web/js/deluge-all/UI.js +++ b/deluge/ui/web/js/deluge-all/UI.js @@ -256,7 +256,7 @@ deluge.ui = { }, onPluginDisabled: function(pluginName) { - deluge.plugins[pluginName].disable(); + if (deluge.plugins[pluginName]) deluge.plugins[pluginName].disable(); }, onPluginLoaded: function(options) {