From feaf8981de31dcc5c7a73d4985de4b1ddc5719b7 Mon Sep 17 00:00:00 2001 From: Ibrahim BinAlshikh Date: Mon, 30 Oct 2023 16:35:25 +0300 Subject: [PATCH] Update DatabaseSessionStorage.php --- webfiori/framework/session/DatabaseSessionStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webfiori/framework/session/DatabaseSessionStorage.php b/webfiori/framework/session/DatabaseSessionStorage.php index 84f847e5..ad56967e 100644 --- a/webfiori/framework/session/DatabaseSessionStorage.php +++ b/webfiori/framework/session/DatabaseSessionStorage.php @@ -39,7 +39,7 @@ public function __construct() { try { $this->dbController = new SessionDB(); } catch (DatabaseException $ex) { - if (str_contains($ex->getMessage(), '"No connection was found')) { + if (strpos($ex->getMessage(), 'sessions-connection') !== false) { throw new SessionException("Connection 'sessions-connection' was not found in application configuration."); } else { throw $ex;