From 1db63d81e96540e3d8635c4e42312c81aeef8dfa Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 19 Nov 2019 01:49:06 +0100 Subject: [PATCH] fixes for PHP 7.4 --- src/Dibi/Fluent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dibi/Fluent.php b/src/Dibi/Fluent.php index 8de2e447..fc8c0d6f 100644 --- a/src/Dibi/Fluent.php +++ b/src/Dibi/Fluent.php @@ -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']); }