Log Kolab object parsing failures
This commit is contained in:
parent
c9963d279c
commit
9db0e9b3d5
1 changed files with 13 additions and 0 deletions
|
@ -441,6 +441,19 @@ class kolab_storage_folder
|
|||
|
||||
return $object;
|
||||
}
|
||||
else {
|
||||
// try to extract object UID from XML block
|
||||
if (preg_match('!<uid>(.+)</uid>!Uims', $xml, $m))
|
||||
$msgadd = " UID = " . trim(strip_tags($m[1]));
|
||||
|
||||
raise_error(array(
|
||||
'code' => 600,
|
||||
'type' => 'php',
|
||||
'file' => __FILE__,
|
||||
'line' => __LINE__,
|
||||
'message' => "Could not parse Kolab object data in message $msguid ($this->name)." . $msgadd,
|
||||
), true);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue