Skip to content

Commit 4a6f31b

Browse files
authored
Merge pull request #32 from horde/port/bytestream-22
Fix undefined index 'count' (FRAMEWORK_6_0)
2 parents 573c97b + 496b4e4 commit 4a6f31b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Horde/Imap/Client/Socket.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2550,7 +2550,7 @@ protected function _search($query, $options)
25502550
switch ($val) {
25512551
case Horde_Imap_Client::SEARCH_RESULTS_COUNT:
25522552
$ret['count'] = ($esearch && !$partial)
2553-
? $er['count']
2553+
? (isset($er['count']) ? $er['count'] : 0)
25542554
: count($sr);
25552555
break;
25562556

0 commit comments

Comments
 (0)