2
0
forked from Wavyzz/dolibarr

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

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);