plugins/kolab_folders
Aleksander Machniak
machniak at kolabsys.com
Tue Apr 9 18:51:29 CEST 2013
plugins/kolab_folders/kolab_folders.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9d1f43d9c2f945f2176c673edd143b94673fd4a1
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Tue Apr 9 18:50:47 2013 +0200
Fix PHP warning when folder rights is not available (e.g. non-existing folder)
diff --git a/plugins/kolab_folders/kolab_folders.php b/plugins/kolab_folders/kolab_folders.php
index a45c108..3f5170e 100644
--- a/plugins/kolab_folders/kolab_folders.php
+++ b/plugins/kolab_folders/kolab_folders.php
@@ -178,7 +178,7 @@ class kolab_folders extends rcube_plugin
// Don't allow changing type of shared folder, according to ACL
if (strlen($mbox)) {
$options = $storage->folder_info($mbox);
- if ($options['namespace'] != 'personal' && !in_array('a', $options['rights'])) {
+ if ($options['namespace'] != 'personal' && !in_array('a', (array)$options['rights'])) {
if (in_array($ctype, $this->types)) {
$value = $this->gettext('foldertype'.$ctype);
}
More information about the commits
mailing list