1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-31 20:52:17 +01:00

Merge pull request #877 from derkostka/master

fix Undefined index error ehen updatein thumbnail of contacts
This commit is contained in:
Thomas Müller 2015-05-08 00:34:01 +02:00
commit ba050ccf11
2 changed files with 3 additions and 3 deletions

View File

@ -827,7 +827,7 @@ class Contact extends VObject\VCard implements IPIMObject {
}
$vcal = new \Sabre\VObject\Component\VCalendar();
$vcal->VERSION = '2.0';
$vcal->createComponent('VEVENT');
$vevent = $vcal->createComponent('VEVENT');
$vevent->add('DTSTART');
$vevent->DTSTART->setDateTime(
$date

View File

@ -300,12 +300,12 @@ Class Properties {
return $cache->get($key);
}
} else {
if ($options['remove'] === false && $options['update'] === false){
if ( (isset($options['remove']) && $options['remove'] === false)
&& (isset($options['update']) && $options['update'] === false) ){
return $cache->get($key);
}
}
if (isset($options['remove']) && $options['remove']) {
$cache->remove($key);
if(!isset($options['update']) || !$options['update']) {