Skip to content

Commit

Permalink
fix: controlli su aggiornamenti
Browse files Browse the repository at this point in the history
  • Loading branch information
Pek5892 committed Oct 31, 2024
1 parent 6a9b384 commit 8a42b2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions modules/aggiornamenti/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ function settings_diff($expected, $current)
} else {
$null = 'NULL';
}
$query .= str_replace('DEFAULT_GENERATED', ' ', $data[$table][$name]['extra']).' '.$null.' DEFAULT '.$data[$table][$name]['default'].';';
$query .= str_replace('DEFAULT_GENERATED', ' ', $data[$table][$name]['extra']).' '.$null;
if ($data[$table][$name]['default']) {
$query .= ' DEFAULT '.$data[$table][$name]['default'];
}
}

echo '
Expand All @@ -204,7 +207,7 @@ function settings_diff($expected, $current)
'.$name.'
</td>
<td>
'.$query.'
'.$query.';
</td>
</tr>';

Expand Down
2 changes: 1 addition & 1 deletion plugins/importFE/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

if (!empty($list)) {
echo '
<table class="table table-striped table-hover table-sm table-bordered datatables">
<table class="table table-striped table-hover table-sm table-bordered">
<thead>
<tr>
<th>'.tr('Descrizione').'</th>
Expand Down

0 comments on commit 8a42b2d

Please sign in to comment.