Skip to content

Commit

Permalink
Check if it is null
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsverkoyen committed Feb 28, 2015
1 parent e3ec8d0 commit 0228952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct(
$this->setRepository($repository);
$this->setEventDispatcher($eventDispatcher);

if ($term) {
if (null !== $term) {
$this->setTerm($term);
}
}
Expand Down

0 comments on commit 0228952

Please sign in to comment.