Fix configurazione per php8.1

This commit is contained in:
Pek5892 2024-04-15 08:54:08 +02:00
parent c41ca167eb
commit 03eb6a166b
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ $pageTitle = tr('Configurazione');
include_once App::filepath('include|custom|', 'top.php');
// Controllo sull'esistenza di nuovi parametri di configurazione
if (post('db_host') !== null) {
if (!empty(post('db_host'))) {
$db_host = $_POST['db_host']; // Fix per evitare la conversione in numero
$db_name = post('db_name');
$db_username = post('db_username');