From 89e417b4dcc8efa8686927771c25dd64ab715a9b Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 10 May 2006 10:52:26 +0000 Subject: [PATCH] Fixed undefined index git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3267 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_mail-methods-cyrus.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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.")); -- 2.30.2