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:
@@ -15,7 +15,7 @@ if ($domains_processed == 1) {
|
||||
$sql = "select * from v_groups ";
|
||||
$sql .= "where domain_uuid is null ";
|
||||
$database = new database;
|
||||
$groups = $database->select($sql, $parameters, 'all');
|
||||
$groups = $database->select($sql, null, 'all');
|
||||
|
||||
//get the dashboard
|
||||
$sql = "select ";
|
||||
@@ -27,7 +27,7 @@ if ($domains_processed == 1) {
|
||||
$sql .= "dashboard_description ";
|
||||
$sql .= "from v_dashboard ";
|
||||
$database = new database;
|
||||
$dashboard_widgets = $database->select($sql, $parameters, 'all');
|
||||
$dashboard_widgets = $database->select($sql, null, 'all');
|
||||
unset($sql, $parameters);
|
||||
|
||||
//add the dashboard widgets
|
||||
@@ -60,7 +60,7 @@ if ($domains_processed == 1) {
|
||||
$array['dashboard'][$x]['dashboard_enabled'] = $row['dashboard_enabled'];
|
||||
$array['dashboard'][$x]['dashboard_description'] = $row['dashboard_description'];
|
||||
$y = 0;
|
||||
if (is_array($row['dashboard_groups'])) {
|
||||
if (!empty($row['dashboard_groups'])) {
|
||||
foreach ($row['dashboard_groups'] as $row) {
|
||||
if (isset($row['group_name'])) {
|
||||
foreach($groups as $field) {
|
||||
@@ -84,7 +84,7 @@ if ($domains_processed == 1) {
|
||||
$p->add('dashboard_group_add', 'temp');
|
||||
|
||||
//save the data
|
||||
if (is_array($array)) {
|
||||
if (!empty($array)) {
|
||||
$database = new database;
|
||||
$database->app_name = 'dashboard';
|
||||
$database->app_uuid = '55533bef-4f04-434a-92af-999c1e9927f7';
|
||||
|
||||
Reference in New Issue
Block a user