Skip to content

Commit f8d5f34

Browse files
zeddmasterDmitry Chizh
andauthored
When using the chunk function, some messages do not have an element with index 0 Webklex#552 Webklex#553
Co-authored-by: Dmitry Chizh <[email protected]>
1 parent 35bad85 commit f8d5f34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Connection/Protocols/ImapProtocol.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,7 @@ public function fetch(array|string $items, array|int $from, mixed $to = null, in
770770
if (is_array($from) && count($from) > 1) {
771771
$set = implode(',', $from);
772772
} elseif (is_array($from) && count($from) === 1) {
773+
$from = array_values($from);
773774
$set = $from[0] . ':' . $from[0];
774775
} elseif ($to === null) {
775776
$set = $from . ':' . $from;

0 commit comments

Comments
 (0)