Prevent error when using nextcloud_link plugin in CLI

This commit is contained in:
Aleksander Machniak 2023-05-11 14:45:22 +02:00
parent 8d688a4189
commit 84084ff3ab

View file

@ -33,7 +33,7 @@ class nextcloud_link extends rcube_plugin
{
$this->rc = rcube::get_instance();
if ($this->rc->output->ajax_call || !empty($this->rc->output->env['framed'])) {
if ($this->rc->output->type !== 'html' || !empty($this->rc->output->env['framed'])) {
return;
}