Skip to content

Commit

Permalink
fix check if array key is set
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L. <[email protected]>
  • Loading branch information
szaimen committed Dec 20, 2024
1 parent 86554ba commit bc4ebfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/src/ContainerDefinitionFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ private function GetDefinition(): array
}

$enableNvidiaGpu = false;
if (is_bool($entry['enable_nvidia_gpu'])) {
if (isset($entry['enable_nvidia_gpu'])) {
$enableNvidiaGpu = $entry['enable_nvidia_gpu'];
}

Expand Down

0 comments on commit bc4ebfa

Please sign in to comment.