|
@@ -405,7 +405,7 @@
|
|
|
}
|
|
|
public function fetch(array $columns = null, array $filter = null, int $start = null, int $amount = null){
|
|
|
$results = [];
|
|
|
- $this->each(function($row) use($results){
|
|
|
+ $this->each(function($row) use(&$results){
|
|
|
$results[] = $row;
|
|
|
}, $columns, $filter, $start, $amount);
|
|
|
return $results;
|
|
@@ -434,4 +434,4 @@
|
|
|
return $this->exists ? $this->pdo->exec("select 1 from `{$this->name}` {$this->pdo->stringFilter($filter)}") : 0;
|
|
|
}
|
|
|
}
|
|
|
-?>
|
|
|
+?>
|