summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-01-03 07:15:51 +0000
committeralecpl <alec@alec.pl>2011-01-03 07:15:51 +0000
commitaff04d6fc4dd5a63b0ee91427917287f8a5d928f (patch)
tree590f27f47eae3919eed72a97e5ad442ca1a4dad4
parenta36e1ef9671e38f421586c386e94cb1eb4e9b83f (diff)
- Fix errors in getACL() and myRights()
-rw-r--r--program/include/rcube_imap_generic.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php
index 8b04a6b93..9eeb028bf 100644
--- a/program/include/rcube_imap_generic.php
+++ b/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 ")