Skip to content

Commit

Permalink
ENGCOM-7236: fix: prevent undefined index error - closes #26762 #26763
Browse files Browse the repository at this point in the history
 - Merge Pull Request #26763 from DanielRuf/magento2:fix/26762-check-driver-option-exists
 - Merged commits:
   1. 1914636
  • Loading branch information
magento-engcom-team committed Mar 30, 2020
2 parents 176ba2b + 1914636 commit 3c4f02c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ public function getDriverOptions(array $options): array
*/
private function optionExists($options, $driverOptionKey): bool
{
return $options[$driverOptionKey] === false || !empty($options[$driverOptionKey]);
return isset($options[$driverOptionKey]) && ($options[$driverOptionKey] === false || !empty($options[$driverOptionKey]));
}
}

0 comments on commit 3c4f02c

Please sign in to comment.