The str_ireplace() function is not always present.

This commit is contained in:
Andrew McMillan 2016-06-22 23:04:52 +01:00
parent 50d0de4992
commit b7cc11a329

View File

@ -33,7 +33,7 @@ if ( $sync_level == DEPTH_INFINITY ) {
$sync_tokens = $xmltree->GetPath('/DAV::sync-collection/DAV::sync-token');
if ( isset($sync_tokens[0]) ) $sync_token = $sync_tokens[0]->GetContent();
if ( !isset($sync_token) ) $sync_token = 0;
$sync_token = intval(str_ireplace('data:,', '', $sync_token ));
$sync_token = intval(str_replace('data:,', '', strtolower($sync_token) ));
dbg_error_log( 'sync', " sync-token: %s", $sync_token );
$proplist = array();