From: hickert Date: Wed, 10 May 2006 10:52:26 +0000 (+0000) Subject: Fixed undefined index X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=89e417b4dcc8efa8686927771c25dd64ab715a9b;p=gosa.git Fixed undefined index git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3267 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_mail-methods-cyrus.inc b/include/class_mail-methods-cyrus.inc index e1becdae9..76e3908ea 100644 --- a/include/class_mail-methods-cyrus.inc +++ b/include/class_mail-methods-cyrus.inc @@ -148,8 +148,10 @@ class mailMethodCyrus extends mailMethod /* Remove all acl's for this folder */ $users= @imap_getacl ($this->mbox, $subfolder); - foreach ($users as $userid => $perms){ - imap_setacl ($this->mbox, $subfolder, $userid, ""); + if(is_array($users)){ + foreach ($users as $userid => $perms){ + imap_setacl ($this->mbox, $subfolder, $userid, ""); + } } } else { print_red (_("Warning: imap_getacl is not implemented, can't remove acl informations."));