1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Fix per PHP 8.1

This commit is contained in:
Luca
2022-03-18 17:43:50 +01:00
parent 235446c06c
commit 4c9f512945
6 changed files with 40 additions and 20 deletions

View File

@ -80,7 +80,9 @@ if (!empty($query)) {
$align = [];
$row = isset($rows[0]) ? $rows[0] : [];
foreach ($row as $field => $value) {
$value = trim($value);
if (!empty($value)){
$value = trim($value);
}
// Allineamento a destra se il valore della prima riga risulta numerica
if (is_numeric($value) && formatter()->isStandardNumber($value)) {
@ -119,7 +121,9 @@ if (!empty($query)) {
$column['class'] = $align[$field];
}
$value = trim($r[$field]);
if (!empty($r[$field])){
$value = trim($r[$field]);
}
// Formattazione HTML
if (empty($total['html_format'][$pos]) && !empty($value)) {