diff --git a/htdocs/user/vcard.php b/htdocs/user/vcard.php index 695cd0e556e..a59e4e62872 100644 --- a/htdocs/user/vcard.php +++ b/htdocs/user/vcard.php @@ -44,7 +44,7 @@ $result = restrictedArea($user, 'user', $id, 'user', $feature2); $object = new User($db); $result = $object->fetch($id); if ($result <= 0) { - dol_print_error($object->error); + dol_print_error($db, $object->error); exit; }