diff --git a/actions.php b/actions.php index 6e1dd613d..bc3482362 100755 --- a/actions.php +++ b/actions.php @@ -515,9 +515,9 @@ if ($structure->permission == 'rw') { foreach ($values as $key => $value) { $name = $dbo->fetchOne('SELECT `name` FROM `zz_fields` WHERE `id` = '.prepare($key)); - $custom_fields = new HTMLBuilder\Manager\FieldManager; + $custom_fields = new HTMLBuilder\Manager\FieldManager(); $campo = $custom_fields->getValue(['id_record' => $id_record, 'id_module' => $id_module], $name); - if (empty($campo)){ + if (empty($campo)) { $dbo->insert('zz_field_record', [ 'id_record' => $id_record, 'id_field' => $key, diff --git a/ajax_dataload.php b/ajax_dataload.php index e56069aeb..d5749cc84 100755 --- a/ajax_dataload.php +++ b/ajax_dataload.php @@ -133,7 +133,7 @@ if (!empty($query)) { // Formattazione HTML if (empty($total['html_format'][$pos]) && !empty($value)) { - $value = strip_tags($value?:''); + $value = strip_tags($value ?: ''); } // Formattazione automatica diff --git a/include/top.php b/include/top.php index 2ca4a2c6d..7232417f8 100755 --- a/include/top.php +++ b/include/top.php @@ -457,8 +457,8 @@ if (Auth::check()) {