Skip to content

Commit e581385

Browse files
authored
ENGCOM-7236: fix: prevent undefined index error - closes #26762 #26763
2 parents c3c5927 + 3c4f02c commit e581385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup/src/Magento/Setup/Model/ConfigOptionsList/DriverOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public function getDriverOptions(array $options): array
4646
*/
4747
private function optionExists($options, $driverOptionKey): bool
4848
{
49-
return $options[$driverOptionKey] === false || !empty($options[$driverOptionKey]);
49+
return isset($options[$driverOptionKey]) && ($options[$driverOptionKey] === false || !empty($options[$driverOptionKey]));
5050
}
5151
}

0 commit comments

Comments
 (0)