Sofia Global Settings: Updates for PHP 8.1

This commit is contained in:
fusionate
2023-06-09 18:06:02 +00:00
parent 3f94d93411
commit 4ba06c5335
2 changed files with 29 additions and 5 deletions

View File

@@ -220,7 +220,7 @@ if (!class_exists('sofia_global_settings')) {
//add copy to the description
$array[$this->table][$x][$this->name.'_uuid'] = uuid();
$array[$this->table][$x]['global_setting_enabled'] = $row['global_setting_enabled'];
$array[$this->table][$x][$this->description_field] = trim($row[$this->description_field]).' ('.$text['label-copy'].')';
$array[$this->table][$x][$this->description_field] = trim($row[$this->description_field] ?? '').trim(' ('.$text['label-copy'].')');
//increment the id
$x++;
@@ -249,4 +249,4 @@ if (!class_exists('sofia_global_settings')) {
}
}
?>
?>