diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-01-03 07:15:51 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-01-03 07:15:51 +0000 |
| commit | 543cef5d319f68b665720426e9427dde5d9ce3af (patch) | |
| tree | 68e0d6094b8a9001f5694ef1472f06466ec57644 /roundcubemail/program | |
| parent | 5b8313bc0ef1d2c2dc02639d18895b73826dc3b4 (diff) | |
- Fix errors in getACL() and myRights()
git-svn-id: https://svn.roundcube.net/trunk@4384 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap_generic.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcube_imap_generic.php b/roundcubemail/program/include/rcube_imap_generic.php index 8b04a6b93..9eeb028bf 100644 --- a/roundcubemail/program/include/rcube_imap_generic.php +++ b/roundcubemail/program/include/rcube_imap_generic.php @@ -2606,13 +2606,13 @@ class rcube_imap_generic */ function getACL($mailbox) { - list($code, $response) = $this->execute('GETACL', $this->escape($mailbox)); + list($code, $response) = $this->execute('GETACL', array($this->escape($mailbox))); if ($code == self::ERROR_OK && preg_match('/^\* ACL /i', $response)) { // Parse server response (remove "* ACL ") $response = substr($response, 6); $ret = $this->tokenizeResponse($response); - $mbox = array_unshift($ret); + $mbox = array_shift($ret); $size = count($ret); // Create user-rights hash array @@ -2679,7 +2679,7 @@ class rcube_imap_generic */ function myRights($mailbox) { - list($code, $response) = $this->execute('MYRIGHTS', array($this->escape(mailbox))); + list($code, $response) = $this->execute('MYRIGHTS', array($this->escape($mailbox))); if ($code == self::ERROR_OK && preg_match('/^\* MYRIGHTS /i', $response)) { // Parse server response (remove "* MYRIGHTS ") |
