diff --git a/lib/Horde/Imap/Client/Socket.php b/lib/Horde/Imap/Client/Socket.php index 3449fb1a..bc16a4e2 100644 --- a/lib/Horde/Imap/Client/Socket.php +++ b/lib/Horde/Imap/Client/Socket.php @@ -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;