1
0
mirror of https://github.com/dg/dibi.git synced 2025-07-30 19:00:13 +02:00

fixes for PHP 7.4

This commit is contained in:
David Grudl
2019-11-19 01:49:06 +01:00
parent c7dee4d822
commit 1db63d81e9

View File

@@ -423,7 +423,7 @@ class Fluent implements IDataSource
if ($clause === null) {
$data = $this->clauses;
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']);
}