Skip to content

Commit

Permalink
Ldap\Query: Fix access of a filter's expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Meyer committed May 6, 2015
1 parent cfa9176 commit 108f551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Protocol/Ldap/Query.php
Expand Up @@ -131,7 +131,7 @@ public function addFilter(Filter $filter)
// TODO: This should be considered a quick fix only.
// Drop this entirely once support for Icinga\Data\Filter is available
if ($filter->isExpression()) {
$this->where($filter->getColumn(), $filter->getValue());
$this->where($filter->getColumn(), $filter->getExpression());
} elseif ($filter->isChain()) {
foreach ($filter->filters() as $chainOrExpression) {
$this->addFilter($chainOrExpression);
Expand Down

0 comments on commit 108f551

Please sign in to comment.