mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-23 05:03:38 +00:00
Simplify using GetPath() method.
This commit is contained in:
parent
cac1dd1fd0
commit
2808bab03b
@ -36,13 +36,12 @@ if ( !isset($sync_token) ) $sync_token = 0;
|
||||
$sync_token = intval(str_ireplace('data:,', '', $sync_token ));
|
||||
dbg_error_log( 'sync', " sync-token: %s", $sync_token );
|
||||
|
||||
|
||||
$props = $xmltree->GetElements('DAV::prop');
|
||||
$v = $props[0];
|
||||
$props = $v->GetContent();
|
||||
$proplist = array();
|
||||
foreach( $props AS $k => $v ) {
|
||||
$proplist[] = $v->GetNSTag();
|
||||
$props = $xmltree->GetPath('/DAV::sync-collection/DAV::prop/*');
|
||||
if ( !empty($props) ) {
|
||||
foreach( $props AS $k => $v ) {
|
||||
$proplist[] = $v->GetNSTag();
|
||||
}
|
||||
}
|
||||
|
||||
function display_status( $status_code ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user