From 454c17a2c157049c02a131fd4d0af2314c57da54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 22 Aug 2025 02:52:48 +0200 Subject: [PATCH] Continued: - fixes error on returned type not matching --- framework/main/classes/class_BaseFrameworkSystem.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/framework/main/classes/class_BaseFrameworkSystem.php b/framework/main/classes/class_BaseFrameworkSystem.php index 60c9519a..257d1cdc 100644 --- a/framework/main/classes/class_BaseFrameworkSystem.php +++ b/framework/main/classes/class_BaseFrameworkSystem.php @@ -1921,8 +1921,11 @@ Loaded includes: // Default is 'null' $stateName = 'null'; - // Get the state instance - $stateInstance = $this->getStateInstance(); + // Check if state instance is there + if ($this->isStateInstanceSet()) { + // Get the state instance + $stateInstance = $this->getStateInstance(); + } // Is it an instance of Stateable? //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-FRAMEWORK-SYSTEM: stateInstance[]=%s', gettype($stateInstance))); -- 2.39.5