Skip to content

Commit

Permalink
Fix undefined index 'count'
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream authored and ralflang committed Mar 28, 2024
1 parent 573c97b commit 496b4e4
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 496b4e4

Please sign in to comment.