fix: scrutinizer

This commit is contained in:
Florian HENRY 2021-10-21 17:09:48 +02:00
parent e9fe668725
commit 4795190a75
2 changed files with 9 additions and 7 deletions

View File

@ -250,6 +250,8 @@ class ExtraFields
return -1; return -1;
} }
$result = 0;
if ($type == 'separate') { if ($type == 'separate') {
$unique = 0; $unique = 0;
$required = 0; $required = 0;
@ -1978,10 +1980,10 @@ class ExtraFields
{ {
global $conf, $langs; global $conf, $langs;
if ($display_type=='card') {
$tagtype='tr'; $tagtype='tr';
$tagtype_dyn='td'; $tagtype_dyn='td';
} elseif ($display_type=='line') {
if ($display_type=='line') {
$tagtype='div'; $tagtype='div';
$tagtype_dyn='span'; $tagtype_dyn='span';
$colspan=0; $colspan=0;