Skip to content

Commit

Permalink
Replace array_key_exists with isset
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Vankrunkelsven committed Feb 11, 2016
1 parent 63062ce commit 2a6f5c8
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 getQueryBuidlerForChoiceType(array $options)
{
$queryBuilder = $this->getCollectionQueryBuilder();

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

Expand Down

0 comments on commit 2a6f5c8

Please sign in to comment.