1
0
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:
Thomas Tanghus 2014-01-22 18:27:02 +01:00
parent b0474d7da4
commit 86e2d305a8

View File

@ -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',