Skip to content

Commit 3c4f02c

Browse files
ENGCOM-7236: fix: prevent undefined index error - closes #26762 #26763
- Merge Pull Request #26763 from DanielRuf/magento2:fix/26762-check-driver-option-exists - Merged commits: 1. 1914636
2 parents 176ba2b + 1914636 commit 3c4f02c

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)