diff --git a/lib/Handler/FooterHandler.php b/lib/Handler/FooterHandler.php index b77b2a3281..c934a60672 100644 --- a/lib/Handler/FooterHandler.php +++ b/lib/Handler/FooterHandler.php @@ -128,7 +128,9 @@ private function getTemplateVars(): array { $this->templateVars['validateIn'] = $this->l10n->t('Validate in %s.', ['%s']); } - $this->templateVars['qrcode'] = $this->getQrCodeImageBase64($this->templateVars['validationSite']); + if ($this->appConfig->getAppValueInt('write_qrcode_on_footer', 1)) { + $this->templateVars['qrcode'] = $this->getQrCodeImageBase64($this->templateVars['validationSite']); + } return $this->templateVars; }