From: hickert Date: Thu, 15 Sep 2011 09:09:26 +0000 (+0000) Subject: Backports from trunk X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=70cf803f868d732dfc996d049bc43eb02ca98c09;p=gosa.git Backports from trunk -Updated groupware plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.7@21007 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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; }