From 8e7866c5505578d5190178ca537efdd36e12a03c Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Tue, 26 Nov 2019 22:24:49 +1300 Subject: [PATCH] Use a placeholder for another instance of collection_id --- inc/caldav-PUT-functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/caldav-PUT-functions.php b/inc/caldav-PUT-functions.php index bcdcb3c4..b9fee40b 100644 --- a/inc/caldav-PUT-functions.php +++ b/inc/caldav-PUT-functions.php @@ -1683,7 +1683,8 @@ EOSQL; rollback_on_error( $caldav_context, $user_no, $path); return false; } - $qry->QDo("SELECT write_sync_change( $collection_id, $sync_change, :dav_name)", array(':dav_name' => $path ) ); + $qry->QDo("SELECT write_sync_change( :collection_id, $sync_change, :dav_name)", + array(':collection_id' => $collection_id, :dav_name' => $path ) ); $qry->Commit(); if ( function_exists('post_commit_action') ) {