The variable $out does not seem to be defined for all execution paths

This commit is contained in:
Frédéric FRANCE 2019-12-05 21:30:47 +01:00 committed by GitHub
parent 2e2c9562e8
commit f101e919c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7663,7 +7663,8 @@ class Form
{
global $db, $conf, $langs, $user;
$sql = 'SELECT rowid, label FROM '.MAIN_DB_PREFIX.'c_exp_tax_cat WHERE active = 1';
$out = '';
$sql = 'SELECT rowid, label FROM '.MAIN_DB_PREFIX.'c_exp_tax_cat WHERE active = 1';
$sql .= ' AND entity IN (0,'.getEntity('exp_tax_cat').')';
if (!empty($excludeid)) $sql .= ' AND rowid NOT IN ('.implode(',', $excludeid).')';
$sql .= ' ORDER BY label';
@ -7752,6 +7753,7 @@ class Form
{
global $db, $conf, $langs;
$out = '';
$sql = 'SELECT rowid, range_ik FROM '.MAIN_DB_PREFIX.'c_exp_tax_range';
$sql .= ' WHERE entity = '.$conf->entity.' AND active = 1';
@ -7789,6 +7791,7 @@ class Form
{
global $db, $langs;
$out = '';
$sql = 'SELECT id, code, label FROM '.MAIN_DB_PREFIX.'c_type_fees';
$sql .= ' WHERE active = 1';