Formattazione codice

This commit is contained in:
valentina 2024-08-28 11:28:21 +02:00
parent 75a01bfbde
commit 1a339fd773
2 changed files with 3 additions and 5 deletions

View File

@ -208,11 +208,11 @@ if (!empty($results) || !empty($results_added) || !empty($results_settings) || !
<tbody>';
foreach ($foreign_keys as $name => $diff) {
foreach ($foreign_keys as $name => $diff) {
echo '
<tr class="bg-warning" >
<td>
'.($name?:$diff['expected']['title']).'
'.($name ?: $diff['expected']['title']).'
</td>
<td>
QUERY DA ESEGUIRE:<br>
@ -229,7 +229,6 @@ if (!empty($results) || !empty($results_added) || !empty($results_settings) || !
}
if (!empty($results_added)) {
foreach ($results_added as $table => $errors) {
echo '
<h3>'.$table.'</h3>';
@ -284,7 +283,7 @@ if (!empty($results) || !empty($results_added) || !empty($results_settings) || !
<tbody>';
foreach ($foreign_keys as $name => $diff) {
foreach ($foreign_keys as $name => $diff) {
echo '
<tr class="bg-info" >
<td>

View File

@ -118,7 +118,6 @@ switch (filter('op')) {
$dbo->update('zz_group_module', $array, ['id' => $id]);
$dbo->update('zz_group_module_lang', ['title' => $array['name']], ['id_record' => $id, 'id_lang' => Models\Locale::getDefault()->id]);
} elseif (!empty($query)) {
$dbo->insert('zz_group_module', $array);
$dbo->insert('zz_group_module_lang', ['id_record' => $dbo->lastInsertedID(), 'id_lang' => Models\Locale::getDefault()->id, 'title' => $array['name']]);