From 2ce86af0590f133c551c1601ce2320e96aade98c Mon Sep 17 00:00:00 2001 From: thomasb Date: Tue, 20 Mar 2012 22:47:24 +0000 Subject: Add support for read-only address book records git-svn-id: https://svn.roundcube.net/trunk@6023 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_imap.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'roundcubemail/program/include') diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index 7038d24b9..bd8f35176 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -1346,21 +1346,21 @@ class rcube_imap extends rcube_storage * * @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; } -- cgit v1.2.3