Skip to content

Commit 0e75d7e

Browse files
pierementWiebe Haanstra
and
Wiebe Haanstra
authored
Fix error on getUid(null) with 0 results (#499) (#573)
Co-authored-by: Wiebe Haanstra <[email protected]>
1 parent fb10c94 commit 0e75d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Connection/Protocols/ImapProtocol.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ public function getUid(?int $id = null): Response {
940940
$uids = $this->uid_cache;
941941

942942
if ($id == null) {
943-
return Response::empty($this->debug)->setResult($uids);
943+
return Response::empty($this->debug)->setResult($uids)->setCanBeEmpty(true);
944944
}
945945

946946
foreach ($uids as $k => $v) {

0 commit comments

Comments
 (0)