Use a placeholder for another instance of collection_id

This commit is contained in:
Andrew Ruthven 2019-11-26 22:24:49 +13:00
parent 2ba1d64b0c
commit 8e7866c550

View File

@ -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') ) {