Fixing style errors.

This commit is contained in:
stickler-ci 2021-03-19 09:05:20 +00:00
parent a1f6886e97
commit ee701bb480
2 changed files with 2 additions and 2 deletions

View File

@ -1666,7 +1666,7 @@ class ExtraFields
$value = price($value, 0, $langs, 0, 0, -1); $value = price($value, 0, $langs, 0, 0, -1);
} }
} elseif ($type == 'select') { } elseif ($type == 'select') {
$valstr = (!empty($param['options'][$value]) ? $param['options'][$value] : ''); $valstr = (!empty($param['options'][$value]) ? $param['options'][$value] : '');
if (($pos = strpos($valstr, "|")) !== false) { if (($pos = strpos($valstr, "|")) !== false) {
$valstr = substr($valstr, 0, $pos); $valstr = substr($valstr, 0, $pos);
} }

View File

@ -35,7 +35,7 @@ if (!empty($extrafieldsobjectkey)) { // $extrafieldsobject is the $object->table
} }
$value = $datenotinstring; $value = $datenotinstring;
} else { } else {
$value = (!empty($obj->$tmpkey) ? $obj->$tmpkey : ''); $value = (!empty($obj->$tmpkey) ? $obj->$tmpkey : '');
} }
// If field is a computed field, we make computation to get value // If field is a computed field, we make computation to get value
if ($extrafields->attributes[$extrafieldsobjectkey]['computed'][$key]) { if ($extrafields->attributes[$extrafieldsobjectkey]['computed'][$key]) {