Avoid unassigned variable warning.

This commit is contained in:
Andrew McMillan 2012-09-10 13:15:13 +12:00
parent 121f02069f
commit 6695b46160

View File

@ -31,7 +31,7 @@ if ( $sync_level == DEPTH_INFINITY ) {
}
$sync_tokens = $xmltree->GetPath('/DAV::sync-collection/DAV::sync-token');
$sync_token = $sync_tokens[0]->GetContent();
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 ));
dbg_error_log( 'sync', " sync-token: %s", $sync_token );