fix previous made bug and fix oc bug - oc-139

This commit is contained in:
Georg Ehrke 2012-03-23 17:27:52 +01:00
parent ac8362e34a
commit 0e11cc9f6f
1 changed files with 4 additions and 2 deletions

View File

@ -8,11 +8,13 @@
require_once ('../../../lib/base.php');
require_once('when/When.php');
$l = new OC_L10N('calendar');
$unnamed = $l->t('unnamed');
function create_return_event($event, $vevent){
$return_event = array();
global $unnamed;
$return_event['id'] = (int)$event['id'];
$return_event['title'] = htmlspecialchars(($event['summary']!=NULL)?$event['summary']:$l->t('unnamed'));
$return_event['title'] = htmlspecialchars(($event['summary']!=NULL || $event['summary'] != '')?$event['summary']: $unnamed);
$return_event['description'] = isset($vevent->DESCRIPTION)?htmlspecialchars($vevent->DESCRIPTION->value):'';
$last_modified = $vevent->__get('LAST-MODIFIED');
if ($last_modified){