Skip to content

Commit

Permalink
fix: corrected true/false parameter types (#3312)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jan 5, 2025
1 parent 8339c2a commit 6d8785b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public function updateDatabase(): JsonResponse

try {
if ($update->applyUpdates()) {
$this->configuration->set('main.maintenanceMode', false);
$this->configuration->set('main.maintenanceMode', 'false');
return new JsonResponse(
['success' => '✅ Database successfully updated.'],
Response::HTTP_OK
Expand Down
2 changes: 1 addition & 1 deletion phpmyfaq/src/phpMyFAQ/Controller/Api/SetupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function updateDatabase(Request $request): JsonResponse

try {
if ($update->applyUpdates()) {
$this->configuration->set('main.maintenanceMode', true);
$this->configuration->set('main.maintenanceMode', 'false');
return new JsonResponse(['success' => '✅ Database successfully updated.'], Response::HTTP_OK);
}
} catch (Exception $exception) {
Expand Down

0 comments on commit 6d8785b

Please sign in to comment.