diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 35f199c..1494732 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,11 +2,8 @@ - - - - - + + @@ -27,7 +24,7 @@ - + @@ -67,11 +64,43 @@ - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -126,6 +155,8 @@ @@ -392,12 +423,12 @@ \ No newline at end of file diff --git a/backend/functions.php b/backend/functions.php index f6a9625..b4df684 100644 --- a/backend/functions.php +++ b/backend/functions.php @@ -3,7 +3,7 @@ * functions.php, zarafa calender to ics im/exporter backend * * Author: Christoph Haas - * Copyright (C) 2012-2014 Christoph Haas + * Copyright (C) 2012-2016 Christoph Haas * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/backend/sync.php b/backend/sync.php index 647429b..90e2322 100644 --- a/backend/sync.php +++ b/backend/sync.php @@ -4,7 +4,7 @@ * sync.php, zarafa calender to ics im/exporter backend * * Author: Christoph Haas - * Copyright (C) 2012-2014 Christoph Haas + * Copyright (C) 2012-2016 Christoph Haas * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -129,7 +129,7 @@ foreach($userList as $userName => $userData) { if($icsData != NULL) { file_put_contents($tmpFilename, $icsData); echo "Got valid data for " . $syncItem["icsurl"] . " stored in " . $tmpFilename . "\n"; - $result = upload_ics_to_caldav($tmpFilename, $CALDAVURL, $userName, $syncItem["calendar"], $ADMINUSERNAME, $ADMINPASSWORD); + $result = upload_ics_to_caldav($tmpFilename, $CALDAVURL, $userName, $syncItem["calendarname"], $ADMINUSERNAME, $ADMINPASSWORD); if(intval($result) == 200) { echo "Import completed: $result\n"; $result = update_last_sync_date($userStore, $syncItemName);