mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix all PHP 8.1 messages for upgrade.php
This commit is contained in:
@@ -33,7 +33,7 @@ if ($domains_processed == 1) {
|
||||
$sql = "select software_version from v_software ";
|
||||
$database = new database;
|
||||
$software_version = $database->select($sql, null, 'column');
|
||||
if ($software_version == '') {
|
||||
if (empty($software_version)) {
|
||||
$array['software'][0]['software_uuid'] = '7de057e7-333b-4ebf-9466-315ae7d44efd';
|
||||
$array['software'][0]['software_name'] = 'FusionPBX';
|
||||
$array['software'][0]['software_url'] = 'https://www.fusionpbx.com';
|
||||
@@ -45,7 +45,7 @@ if ($domains_processed == 1) {
|
||||
}
|
||||
|
||||
//save the data in the array
|
||||
if (is_array($array) && count($array) > 0) {
|
||||
if (!empty($array)) {
|
||||
//add the temporary permission
|
||||
$p = new permissions;
|
||||
$p->add("software_add", 'temp');
|
||||
|
||||
Reference in New Issue
Block a user