mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-09-01 07:30:07 +02:00
fix compability
This commit is contained in:
parent
50b4db1723
commit
8e1d608e5f
2 changed files with 7 additions and 3 deletions
|
@ -8,6 +8,11 @@
|
|||
session_start();
|
||||
include "config.php";
|
||||
|
||||
if($db_password != null && ($db_pass == null || empty($db_pass))){
|
||||
// compability for old version
|
||||
$db_pass = $db_password;
|
||||
}
|
||||
|
||||
if (empty($update_url)) {
|
||||
$update_url = 'https://github.com/hotspotbilling/phpnuxbill/archive/refs/heads/master.zip';
|
||||
}
|
||||
|
@ -100,7 +105,6 @@ if (empty($step)) {
|
|||
}
|
||||
} else if ($step == 4) {
|
||||
if (file_exists("system/updates.json")) {
|
||||
require 'config.php';
|
||||
$db = new pdo(
|
||||
"mysql:host=$db_host;dbname=$db_name",
|
||||
$db_user,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue