mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
Better check for UID. Refs. #367
This commit is contained in:
parent
b0474d7da4
commit
86e2d305a8
@ -270,7 +270,7 @@ class VCard extends VObject\Component\VCard {
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($this->UID)) {
|
||||
if (!isset($this->UID) || trim((string)$this->UID) === '') {
|
||||
$warnings[] = array(
|
||||
'level' => 1,
|
||||
'message' => 'Every vCard must have a UID',
|
||||
|
Loading…
Reference in New Issue
Block a user