Fix all PHP 8.1 messages for upgrade.php

This commit is contained in:
markjcrane
2023-05-17 10:07:49 -06:00
parent 6816921f47
commit 6d7e125743
22 changed files with 215 additions and 152 deletions

View File

@@ -68,7 +68,7 @@ if ($domains_processed == 1) {
}
//add settings that are not in the database
if (is_array($array) && count($array) > 0) {
if (!empty($array)) {
//grant temporary permissions
$p = new permissions;
$p->add('sofia_global_setting_add', 'temp');