Update card.php

This commit is contained in:
Laurent Destailleur 2017-11-29 15:07:09 +01:00 committed by GitHub
parent d0ab117488
commit dbde97f25f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -415,8 +415,8 @@ if (empty($reshook)) {
}
}
$contactid = GETPOST('contactid', 'int');
if (!$error && $contactid >= 0) {
if (!$error && GETPOSTISSET('contactid')) {
$contactid = GETPOST('contactid', 'int');
if ($contactid > 0) {
$contact = new Contact($db);