From eccf99a44f6af4ea63520079d35a390bfddd017a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 1 Oct 2019 13:59:36 +0200 Subject: - add patch for PHP 7.4 from https://github.com/horde/Imap_Client/pull/9 --- 9.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 9.patch (limited to '9.patch') diff --git a/9.patch b/9.patch new file mode 100644 index 0000000..4ecf872 --- /dev/null +++ b/9.patch @@ -0,0 +1,22 @@ +From fac0813d75d9ab552985667eb4ed74f188679e65 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Tue, 1 Oct 2019 13:38:23 +0200 +Subject: [PATCH] Trying to access array offset on value of type null (7.4) + +--- + lib/Horde/Imap/Client/Socket/ClientSort.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/Horde/Imap/Client/Socket/ClientSort.php b/lib/Horde/Imap/Client/Socket/ClientSort.php +index 4030492a..a93853ab 100644 +--- a/lib/Horde/Imap/Client/Socket/ClientSort.php ++++ b/lib/Horde/Imap/Client/Socket/ClientSort.php +@@ -110,7 +110,7 @@ public function clientSort($res, $opts) + } + + $mbox = $this->_socket->currentMailbox(); +- $fetch_res = $this->_socket->fetch($mbox['mailbox'], $query, array( ++ $fetch_res = $this->_socket->fetch(isset($mbox['mailbox']) ? $mbox['mailbox'] : null, $query, array( + 'ids' => $res + )); + -- cgit