From 1ce868060a8a92387c2d190eb947f788ae014e16 Mon Sep 17 00:00:00 2001 From: Hylke Date: Thu, 8 May 2025 15:18:34 +0200 Subject: [PATCH] Fixed a bug where forms did not render anymore --- core/components/formalicious/src/Formalicious/Snippets/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/components/formalicious/src/Formalicious/Snippets/Base.php b/core/components/formalicious/src/Formalicious/Snippets/Base.php index 362dd45..ead485d 100644 --- a/core/components/formalicious/src/Formalicious/Snippets/Base.php +++ b/core/components/formalicious/src/Formalicious/Snippets/Base.php @@ -50,7 +50,7 @@ public function getProperty($key, $default = null) */ public function getChunk($name, array $properties = []) { - if (class_exists('pdoTools') && $pdo = $this->modx->getService('pdoTools')) { + if ($pdo = $this->modx->getService('pdoTools')) { if ((bool) $this->getProperty('usePdoTools')) { if ((bool) $this->getProperty('usePdoElementsPath')) { $elementsPath = $this->modx->getOption('pdotools_elements_path');