Skip to content

Commit c2012bb

Browse files
author
Wiebe Haanstra
committed
Fix error on getUid(null) with 0 results (Webklex#499)
1 parent 35bad85 commit c2012bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Connection/Protocols/ImapProtocol.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ public function getUid(?int $id = null): Response {
939939
$uids = $this->uid_cache;
940940

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

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

0 commit comments

Comments
 (0)