Commit 772b10f8 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1271 Correctly set exporter to false if root can not be determined

for hierarchy export.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 09493d72
...@@ -82,16 +82,16 @@ class ExportChangesICS implements IExportChanges{ ...@@ -82,16 +82,16 @@ class ExportChangesICS implements IExportChanges{
} }
// Get the actual ICS exporter // Get the actual ICS exporter
if($folderid) { if ($folder) {
if ($folder) { if($folderid) {
$this->exporter = mapi_openproperty($folder, PR_CONTENTS_SYNCHRONIZER, IID_IExchangeExportChanges, 0 , 0); $this->exporter = mapi_openproperty($folder, PR_CONTENTS_SYNCHRONIZER, IID_IExchangeExportChanges, 0 , 0);
} }
else { else {
$this->exporter = false; $this->exporter = mapi_openproperty($folder, PR_HIERARCHY_SYNCHRONIZER, IID_IExchangeExportChanges, 0 , 0);
} }
} }
else { else {
$this->exporter = mapi_openproperty($folder, PR_HIERARCHY_SYNCHRONIZER, IID_IExchangeExportChanges, 0 , 0); $this->exporter = false;
} }
} }
catch (MAPIException $me) { catch (MAPIException $me) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment