fix php8 warning
This commit is contained in:
parent
382b810ba1
commit
c15f2ea4dc
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2018 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2018 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2018-2021 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -114,7 +114,7 @@ if (empty($min)) {
|
|||||||
|
|
||||||
// Define modetax (0 or 1)
|
// Define modetax (0 or 1)
|
||||||
// 0=normal, 1=option vat for services is on debit, 2=option on payments for products
|
// 0=normal, 1=option vat for services is on debit, 2=option on payments for products
|
||||||
$modetax = $conf->global->TAX_MODE;
|
$modetax = !empty($conf->global->TAX_MODE) ? $conf->global->TAX_MODE : 0;
|
||||||
if (GETPOSTISSET("modetax")) {
|
if (GETPOSTISSET("modetax")) {
|
||||||
$modetax = GETPOST("modetax", 'int');
|
$modetax = GETPOST("modetax", 'int');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user