Skip to content

Commit ef2aa02

Browse files
committed
refactor: avviso aggiornamento
1 parent 2584a32 commit ef2aa02

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/aggiornamenti/edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ function search(button) {
800800
</div>';
801801

802802
// Avviso personalizzazioni nella card di caricamento
803-
if (!empty($custom) || $has_field_errors || $has_view_errors) {
803+
if ($has_any_errors) {
804804
echo '
805805
<div class="alert alert-warning mb-2" role="alert" style="border-radius: 4px; padding: 8px 12px; font-size: 12px;">
806806
<i class="fa fa-exclamation-triangle mr-1"></i>
@@ -818,7 +818,7 @@ function search(button) {
818818
</div>
819819
';
820820

821-
if (!empty($custom) || !empty($tables)) {
821+
if ($has_any_errors) {
822822
$disabled = 'disabled';
823823
echo ' <div class="alert alert-warning mt-2 mb-2" style="border-radius: 4px; padding: 10px 12px;">
824824
<div class="form-check mb-0">

0 commit comments

Comments
 (0)