mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-07-10 10:11:46 +00:00
Use the commit() method rather than a commit statement.
This commit is contained in:
parent
7b966171cf
commit
9fdaef2bd1
@ -91,7 +91,10 @@ $vcard->Write( $row->dav_id, $dest->Exists() );
|
||||
|
||||
$qry->QDo("SELECT write_sync_change( $collection_id, $response_code, :dav_name)", array(':dav_name' => $dest->bound_from() ) );
|
||||
|
||||
if ( !$qry->QDo('COMMIT') ) rollback(500);
|
||||
if ( !$qry->Commit() ) {
|
||||
$qry->Rollback();
|
||||
$request->DoResponse( 500, "A database error occurred" );
|
||||
}
|
||||
|
||||
header('ETag: "'. $etag . '"' );
|
||||
if ( $response_code == 200 ) $response_code = 204;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user