summaryrefslogtreecommitdiffstats
path: root/9.patch
blob: 4ecf872d9bcc944ebb6d36beab567515734de284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From fac0813d75d9ab552985667eb4ed74f188679e65 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
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
         ));