From b7cc11a3297e621fd251785b2e7bae8ca6d611d9 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 22 Jun 2016 23:04:52 +0100 Subject: [PATCH] The str_ireplace() function is not always present. --- inc/caldav-REPORT-sync-collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-REPORT-sync-collection.php b/inc/caldav-REPORT-sync-collection.php index 1a04087f..6301926e 100644 --- a/inc/caldav-REPORT-sync-collection.php +++ b/inc/caldav-REPORT-sync-collection.php @@ -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();