mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update app/init/resources.php
Co-authored-by: Matej Bačo <matejbacocom@gmail.com>
This commit is contained in:
co-authored by
Matej Bačo
parent
92439ef0c4
commit
0f3ea91d5d
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user