diff --git a/infolog/js/app.ts b/infolog/js/app.ts index 36ca7c4fc8..3b3b724d30 100644 --- a/infolog/js/app.ts +++ b/infolog/js/app.ts @@ -753,7 +753,11 @@ class InfologApp extends EgwApp */ toggleEncrypt(_event, _widget, _node) { - if (!this.egw.user('apps').stylite) + if(!_node && _widget instanceof HTMLElement) + { + _node = _widget; + } + if(!this.egw.user('apps').stylite) { this.egw.message(this.egw.lang('InfoLog encryption requires EPL Subscription')+': www.egroupware.org/EPL'); return;