diff --git a/modules/aggiornamenti/database.php b/modules/aggiornamenti/database.php index 2e1debd43..ab4d8cf1a 100644 --- a/modules/aggiornamenti/database.php +++ b/modules/aggiornamenti/database.php @@ -208,11 +208,11 @@ if (!empty($results) || !empty($results_added) || !empty($results_settings) || ! '; - foreach ($foreign_keys as $name => $diff) { + foreach ($foreign_keys as $name => $diff) { echo ' - '.($name?:$diff['expected']['title']).' + '.($name ?: $diff['expected']['title']).' QUERY DA ESEGUIRE:
@@ -229,7 +229,6 @@ if (!empty($results) || !empty($results_added) || !empty($results_settings) || ! } if (!empty($results_added)) { - foreach ($results_added as $table => $errors) { echo '

'.$table.'

'; @@ -284,7 +283,7 @@ if (!empty($results) || !empty($results_added) || !empty($results_settings) || ! '; - foreach ($foreign_keys as $name => $diff) { + foreach ($foreign_keys as $name => $diff) { echo ' diff --git a/modules/viste/actions.php b/modules/viste/actions.php index 24b6c4012..042314150 100755 --- a/modules/viste/actions.php +++ b/modules/viste/actions.php @@ -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']]);