Skip to content

Commit

Permalink
Merge branch '2.x' of github.com:linuxserver/Heimdall into 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hunt committed Nov 25, 2022
2 parents 0d3640b + 82b209d commit 181b756
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Http/Controllers/ItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,10 @@ public function testConfig(Request $request)
$app = $single->class;

// If password is not resubmitted fill it from the database when in edit mode
if ($data['password'] === null && array_key_exists('id', $data)) {
if (array_key_exists('password', $data) &&
$data['password'] === null &&
array_key_exists('id', $data)
) {
$item = Item::find($data['id']);
if ($item) {
$itemConfig = $item->getConfig();
Expand Down

0 comments on commit 181b756

Please sign in to comment.