Skip to content

Commit

Permalink
Merge pull request #32 from horde/port/bytestream-22
Browse files Browse the repository at this point in the history
Fix undefined index 'count' (FRAMEWORK_6_0)
  • Loading branch information
ralflang authored Mar 28, 2024
2 parents 573c97b + 496b4e4 commit 4a6f31b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Horde/Imap/Client/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -2550,7 +2550,7 @@ protected function _search($query, $options)
switch ($val) {
case Horde_Imap_Client::SEARCH_RESULTS_COUNT:
$ret['count'] = ($esearch && !$partial)
? $er['count']
? (isset($er['count']) ? $er['count'] : 0)
: count($sr);
break;

Expand Down

0 comments on commit 4a6f31b

Please sign in to comment.