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:
commit
ba050ccf11
@ -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
|
||||
|
@ -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']) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user