mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
To better represent the line where errors occurred...
This commit is contained in:
parent
4f01fe0a17
commit
9a5f021173
@ -934,7 +934,8 @@ function write_resource( DAVResource $resource, $caldav_data, DAVResource $colle
|
|||||||
$sql = 'UPDATE caldav_data SET caldav_data=:dav_data, dav_etag=:etag, caldav_type=:caldav_type, logged_user=:session_user,
|
$sql = 'UPDATE caldav_data SET caldav_data=:dav_data, dav_etag=:etag, caldav_type=:caldav_type, logged_user=:session_user,
|
||||||
modified=:modified, weak_etag=:weak_etag WHERE dav_id=:dav_id';
|
modified=:modified, weak_etag=:weak_etag WHERE dav_id=:dav_id';
|
||||||
}
|
}
|
||||||
if ( !$qry->QDo($sql,$dav_params) ) {
|
$qry = new AwlQuery($sql,$dav_params);
|
||||||
|
if ( !$qry->Exec('PUT',__LINE__,__FILE__) ) {
|
||||||
fatal('Insert into calendar_item failed...');
|
fatal('Insert into calendar_item failed...');
|
||||||
rollback_on_error( $caldav_context, $user_no, $path);
|
rollback_on_error( $caldav_context, $user_no, $path);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user