mirror of
https://github.com/dg/dibi.git
synced 2025-08-02 12:21:06 +02:00
fixes for PHP 7.4
This commit is contained in:
@@ -423,7 +423,7 @@ class Fluent implements IDataSource
|
|||||||
if ($clause === null) {
|
if ($clause === null) {
|
||||||
$data = $this->clauses;
|
$data = $this->clauses;
|
||||||
if ($this->command === 'SELECT' && ($data['LIMIT'] || $data['OFFSET'])) {
|
if ($this->command === 'SELECT' && ($data['LIMIT'] || $data['OFFSET'])) {
|
||||||
$args = array_merge(['%lmt %ofs', $data['LIMIT'][0], $data['OFFSET'][0]], $args);
|
$args = array_merge(['%lmt %ofs', $data['LIMIT'][0] ?? null, $data['OFFSET'][0] ?? null], $args);
|
||||||
unset($data['LIMIT'], $data['OFFSET']);
|
unset($data['LIMIT'], $data['OFFSET']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user