Skip to content

Commit

Permalink
Fix removing FETCH query labels in PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfbecker authored and mrubinsk committed Jun 12, 2021
1 parent a8c11de commit 916d076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Horde/Imap/Client/Socket.php
Expand Up @@ -2952,7 +2952,7 @@ protected function _fetchCmd(
case Horde_Imap_Client::FETCH_BODYPART:
case Horde_Imap_Client::FETCH_HEADERS:
foreach ($c_val as $key => $val) {
$cmd = ($key == 0)
$cmd = ((int)$key == 0)
? ''
: $key . '.';
$main_cmd = 'BODY';
Expand Down

0 comments on commit 916d076

Please sign in to comment.