Fix warning

This commit is contained in:
Laurent Destailleur 2023-01-14 02:31:53 +01:00
parent b11a6a1741
commit b4702aee24
2 changed files with 3 additions and 2 deletions

View File

@ -465,9 +465,9 @@ class vCard
$this->setTitle($object->job);
}
// For user, type=home
// For user, $object->url is not defined
// For contact, $object->url is not defined
if ($object->url) {
if (!empty($object->url)) {
$this->setURL($object->url, "");
}

View File

@ -2464,6 +2464,7 @@ if ($action == 'create' || $action == 'adduserldap') {
// Country
print '<tr><td>'.$form->editfieldkey('Country', 'selectcounty_id', '', $object, 0).'</td><td>';
print img_picto('', 'country', 'class="pictofixedwidth"');
if ($caneditfield) {
print $form->select_country((GETPOST('country_id') != '' ?GETPOST('country_id') : $object->country_id), 'country_id');
if ($user->admin) {