With readonly_webdav_collections set we should write nothing!

We were writing collection records to the database when the
configuration setting readonly_webdav_collections was set, even
though the actual events would not be written.
This commit is contained in:
Andrew McMillan committed 2010-03-05 14:26:58 +13:00
1 parent 31f8c6b17f
commit 03ff39fa33
2 files changed
+8

No files matched your search

+1
View File
@@ -126,6 +126,7 @@ class Tools {
if ( check_string($ics) ) {
$path = "/".substr($file,0,-4).$path_ics;
dbg_error_log( "importFromDirectory", "importing to $path");
$c->readonly_webdav_collections = false; // Override this setting so we can create collections/events on import.
require_once("caldav-PUT-functions.php");
if ( $user = getUserByName(substr($file,0,-4),'importFromDirectory',__LINE__,__FILE__)) {
$user_no = $user->user_no;