Skip to content
Permalink
Browse files

3.0 - Fix issue where conditions that are valid global methods get tr…

…eated as callables
  • Loading branch information...
dakota committed Jul 22, 2014
1 parent b73fc66 commit 7b0db0b4bf8d15272bf667e20a65c5484353125f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Database/Expression/QueryExpression.php
@@ -434,7 +434,7 @@ protected function _addConditions(array $conditions, array $types) {
continue;
}
if (is_callable($c)) {
if (!is_string($c) && is_callable($c)) {
$expr = new QueryExpression([], $typeMap);
$c = $c($expr, $this);
}

0 comments on commit 7b0db0b

Please sign in to comment.
You can’t perform that action at this time.