From 4cf42fde05ff891f6961ba60dbb1c2e4c91c39c6 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Tue, 20 Mar 2012 18:47:24 -0400 Subject: [PATCH] Add support for read-only address book records --- program/include/rcube_imap.php | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 7038d24..bd8f351 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -1346,21 +1346,21 @@ * * @return rcube_result_index Search result (UIDs) */ - public function search_once($mailbox = null, $str = 'ALL') + public function search_once($folder = null, $str = 'ALL') { if (!$str) { return 'ALL'; } - if (!strlen($mailbox)) { - $mailbox = $this->mailbox; + if (!strlen($folder)) { + $folder = $this->folder; } if (!$this->check_connection()) { return new rcube_result_index(); } - $index = $this->conn->search($mailbox, $str, true); + $index = $this->conn->search($folder, $str, true); return $index; } -- Gitblit v1.9.1