avoid placeid to be string or string[]

Are you sure $placeid > 0 ? $placeid : 0 of type integer|string|string[] can be used in echo?
This commit is contained in:
Frédéric FRANCE 2019-11-28 23:31:28 +01:00 committed by GitHub
parent 78eb6ae17d
commit 956ce9ea8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,7 +226,7 @@ if ($action == 'valid' && $user->rights->facture->creer)
if ($action == 'history')
{
$placeid = GETPOST('placeid', 'int');
$placeid = (int) GETPOST('placeid', 'int');
$invoice = new Facture($db);
$invoice->fetch($placeid);
}