diff --git a/src/Appwrite/Platform/Installer/HttpHandler.php b/src/Appwrite/Platform/Installer/HttpHandler.php index d26ad6628f..dd11c81690 100644 --- a/src/Appwrite/Platform/Installer/HttpHandler.php +++ b/src/Appwrite/Platform/Installer/HttpHandler.php @@ -233,7 +233,7 @@ class HttpHandler $rawBody = file_get_contents('php://input'); $input = json_decode($rawBody, true); - if (!$input) { + if (!is_array($input)) { http_response_code(400); echo json_encode(['success' => false, 'message' => 'Invalid request']); return true; diff --git a/src/Appwrite/Platform/Tasks/Upgrade.php b/src/Appwrite/Platform/Tasks/Upgrade.php index cddd3d0276..f35ba1b59f 100644 --- a/src/Appwrite/Platform/Tasks/Upgrade.php +++ b/src/Appwrite/Platform/Tasks/Upgrade.php @@ -44,7 +44,7 @@ class Upgrade extends Install Console::log('Please navigate to the parent directory of the Appwrite installation and try again.'); Console::log(' parent_directory <= you run the command in this directory'); Console::log(' └── appwrite'); - Console::log(' └── docker-compose.yml'); + Console::log(' └── ' . $this->getComposeFileName()); return; }