From 0f3ea91d5d909de3086ae62c4bcb1cc017dc226e Mon Sep 17 00:00:00 2001 From: "Eldad A. Fux" Date: Fri, 20 Feb 2026 11:41:09 +0100 Subject: [PATCH] Update app/init/resources.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Matej Bačo --- app/init/resources.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/init/resources.php b/app/init/resources.php index cb8dcd91eb..157b5e5f64 100644 --- a/app/init/resources.php +++ b/app/init/resources.php @@ -834,8 +834,8 @@ Http::setResource('getProjectDB', function (Group $pools, Database $dbForPlatfor return $dbForPlatform; } - $database = $project->getAttribute('database'); - if ($database === null || $database === '') { + $database = $project->getAttribute('database', ''); + if (empty($database)) { throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Project database is not configured'); }