Skip to content

Commit 28f9ca9

Browse files
committed
Array to string conversion fix, closes #2
1 parent cab1e4c commit 28f9ca9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/NetteDatabaseDataSource.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,11 @@ public function applyFilterText(Filter\FilterText $filter)
272272
$or = substr($big_or, 0, strlen($big_or) - 4).')';
273273

274274
$args = $big_or_args;
275+
} else {
276+
$or = reset($or);
275277
}
276278

277-
$this->queryHelper->whereSql($or);
279+
$this->sql = $this->queryHelper->whereSql($or);
278280

279281
foreach ($args as $arg) {
280282
$this->query_parameters[] = $arg;

0 commit comments

Comments
 (0)