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:
parent
78eb6ae17d
commit
956ce9ea8f
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user