Skip to content

Commit

Permalink
fix: undefined array key 'queue' (#1351)
Browse files Browse the repository at this point in the history
* fix: undefined array key 'queue'

* Update MasterSupervisorController.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
TomaszOnePilot and taylorotwell authored Nov 23, 2023
1 parent 2393ed2 commit bdf58c8
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' => (array_key_exists('queue', $value) && is_array($value['queue']) ? implode(',', $value['queue']) : $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 bdf58c8

Please sign in to comment.