From c17523d4406bafc3db4451c30721fd2042e8874b Mon Sep 17 00:00:00 2001 From: Tiddo Date: Wed, 30 Oct 2024 10:26:35 +0100 Subject: [PATCH] Fix terminal error spam --- .../Component/Controller/ActionController/ApiController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/ApiBundle/Component/Controller/ActionController/ApiController.php b/module/ApiBundle/Component/Controller/ActionController/ApiController.php index fbceb16fdb..10851eff3e 100644 --- a/module/ApiBundle/Component/Controller/ActionController/ApiController.php +++ b/module/ApiBundle/Component/Controller/ActionController/ApiController.php @@ -86,7 +86,9 @@ public function onDispatch(MvcEvent $e) } $result = parent::onDispatch($e); - $result->setTerminal(true); + if ($result instanceof \Laminas\View\Model\ViewModel) { + $result->setTerminal(true); + } if ($this->validateKey() || $this->validateOAuth()) { if (getenv('APPLICATION_ENV') != 'development') {