fix php8 warning

This commit is contained in:
Frédéric FRANCE
2021-03-15 00:26:50 +01:00
committed by GitHub
parent 382b810ba1
commit c15f2ea4dc

View File

@@ -1,6 +1,6 @@
<?php
/* 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
* 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)
// 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")) {
$modetax = GETPOST("modetax", 'int');
}