mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-21 01:54:23 +00:00
Fix defaulting of Depth value for newer PHP versions.
This commit is contained in:
parent
c675349ded
commit
4e3cc98f39
@ -223,7 +223,6 @@ class CalDAVRequest
|
|||||||
* chosen.
|
* chosen.
|
||||||
*/
|
*/
|
||||||
switch( $this->method ) {
|
switch( $this->method ) {
|
||||||
case 'PROPFIND':
|
|
||||||
case 'DELETE':
|
case 'DELETE':
|
||||||
case 'MOVE':
|
case 'MOVE':
|
||||||
case 'COPY':
|
case 'COPY':
|
||||||
@ -231,14 +230,15 @@ class CalDAVRequest
|
|||||||
$this->depth = 'infinity';
|
$this->depth = 'infinity';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'PROPFIND':
|
||||||
case 'REPORT':
|
case 'REPORT':
|
||||||
default:
|
default:
|
||||||
$this->depth = 0;
|
$this->depth = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( $this->depth == 'infinity' ) $this->depth = DEPTH_INFINITY;
|
if ( !is_int($this->depth) && "infinity" == $this->depth ) $this->depth = DEPTH_INFINITY;
|
||||||
$this->depth = intval($this->depth);
|
$this->depth = intval($this->depth);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MOVE/COPY use a "Destination" header and (optionally) an "Overwrite" one.
|
* MOVE/COPY use a "Destination" header and (optionally) an "Overwrite" one.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user