Compare commits

...

2 Commits

Author SHA1 Message Date
Pek5892 1710ec1720 Fix per php8.1 2024-04-15 08:57:53 +02:00
Pek5892 03eb6a166b Fix configurazione per php8.1 2024-04-15 08:54:08 +02:00
1 changed files with 2 additions and 2 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');
@ -51,7 +51,7 @@ if (post('db_host') !== null) {
}
// Test della configurazione
if (post('test') !== null) {
if (!empty(post('test'))) {
ob_end_clean();
if ($dbo->isConnected()) {