From 70cf803f868d732dfc996d049bc43eb02ca98c09 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 15 Sep 2011 09:09:26 +0000 Subject: [PATCH] Backports from trunk -Updated groupware plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.7@21007 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../GroupwareSharedFolder/class_GroupwareSharedFolder.inc | 6 ++++++ .../groupware/personal/groupware/class_Groupware.inc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc b/gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc index aa8c527a5..f293da6ca 100644 --- a/gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc +++ b/gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc @@ -284,6 +284,12 @@ class GroupwareSharedFolder extends plugin */ function save() { + + if(!$this->initialized){ + echo "Nothing to save, plugin init failed!"; + return; + } + $this->folderList = $this->FolderWidget->save(); $rpc = $this->config->getRpcHandle(); diff --git a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc index df3990351..1fd3bb080 100644 --- a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc +++ b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc @@ -418,7 +418,7 @@ class Groupware extends plugin $list = $this->mailAddressSelectDialog->save(); foreach ($list as $entry){ $val = $entry['mail'][0]; - if (!in_array ($val, $this->alternateAddresses) && $val != $this->mailAddress){ + if (!in_array_strict($val, $this->alternateAddresses) && $val != $this->mailAddress){ $this->addForwarder($val); $this->is_modified= TRUE; } -- 2.30.2