Skip to content

Commit

Permalink
Handle non-array parameters for "queue" setting in supervisor config (#…
Browse files Browse the repository at this point in the history
…1299)

* Handle non-array parameters for "queue" setting in supervisor config

* Update MasterSupervisorController.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
PrinsFrank and taylorotwell committed Aug 9, 2023
1 parent b822d75 commit 1987f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/MasterSupervisorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function index(MasterSupervisorRepository $masters,
'status' => 'inactive',
'processes' => [],
'options' => [
'queue' => implode(',', $value['queue'] ?? []),
'queue' => (array_key_exists('queue', $value) && is_array($value['queue']) ? implode(',', $value['queue']) : $value['queue']) ?? '',
'balance' => $value['balance'] ?? null,
],
];
Expand Down

0 comments on commit 1987f98

Please sign in to comment.