Skip to content
Snippets Groups Projects
Commit 0e11cc9f authored by Georg Ehrke's avatar Georg Ehrke
Browse files

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

parent ac8362e3
Branches
No related tags found
No related merge requests found
......@@ -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){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment