Skip to content

Commit

Permalink
Merge pull request #4119 from axelvnk/issue_4118
Browse files Browse the repository at this point in the history
PaymentMethodRepository : check if array key exists before checking if value is false
  • Loading branch information
michalmarcinkowski committed Feb 12, 2016
2 parents 2f6afed + 2cd6413 commit fe866e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function getQueryBuilderForChoiceType(array $options)
{
$queryBuilder = $this->getCollectionQueryBuilder();

if (!$options['disabled']) {
if (isset($options['disabled']) && !$options['disabled']) {
$queryBuilder->where('method.enabled = true');
}

Expand Down

0 comments on commit fe866e0

Please sign in to comment.