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
  • Loading branch information
slavvka authored Mar 31, 2020
2 parents c3c5927 + 3c4f02c commit e581385
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 e581385

Please sign in to comment.