Skip to content

Commit 2ad78cc

Browse files
committed
Callback fix
1 parent eeb73a9 commit 2ad78cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NetteDatabaseDataSource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ public function filter(array $filters)
145145
foreach ($filters as $filter) {
146146
if ($filter->isValueSet()) {
147147
if ($filter->hasConditionCallback()) {
148-
$this->sql = Callback::invokeArgs(
148+
$this->sql = call_user_func_array(
149149
$filter->getConditionCallback(),
150-
[$this->sql, $filter->getValue(), $this->query_parameters]
150+
[$this->sql, $filter->getValue(), & $this->query_parameters]
151151
);
152152
} else {
153153
if ($filter instanceof Filter\FilterText) {

0 commit comments

Comments
 (0)