mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Tasks: Make gettasks more robust against malformed VTODO data
This commit is contained in:
parent
c75bbb59a9
commit
70ba428222
1 changed files with 5 additions and 1 deletions
|
|
@ -26,7 +26,11 @@ foreach( $calendars as $calendar ){
|
|||
}
|
||||
$object = OC_VObject::parse($task['calendardata']);
|
||||
$vtodo = $object->VTODO;
|
||||
$tasks[] = OC_Task_App::arrayForJSON($task['id'], $vtodo, $user_timezone);
|
||||
try {
|
||||
$tasks[] = OC_Task_App::arrayForJSON($task['id'], $vtodo, $user_timezone);
|
||||
} catch(Exception $e) {
|
||||
OC_Log::write('tasks', $e->getMessage(), OC_Log::ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue