make lib/vobject.php work with sabredav 1.6

This commit is contained in:
Georg Ehrke 2012-02-23 17:20:03 +01:00
parent d3e6ea6ac0
commit 95fe159914
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class OC_VObject{
*/ */
public static function parse($data){ public static function parse($data){
try { try {
Sabre_VObject_Reader::$elementMap['LAST-MODIFIED'] = 'Sabre_VObject_Element_DateTime'; Sabre_VObject_Property::$classMap['LAST-MODIFIED'] = 'Sabre_VObject_Element_DateTime';
$vobject = Sabre_VObject_Reader::read($data); $vobject = Sabre_VObject_Reader::read($data);
if ($vobject instanceof Sabre_VObject_Component){ if ($vobject instanceof Sabre_VObject_Component){
$vobject = new OC_VObject($vobject); $vobject = new OC_VObject($vobject);