Prevent a few PHP Warnings

This commit is contained in:
markjcrane
2025-11-01 21:40:28 -06:00
parent a90a4e6212
commit 422fee7f23
2 changed files with 1 additions and 2 deletions

View File

@@ -400,7 +400,6 @@ function do_upgrade_defaults() {
//run all app_defaults.php files
$domain = new domains;
$domain->display_type = 'text';
$domain->upgrade();
echo "\n";

View File

@@ -3086,7 +3086,7 @@ class database {
//check to see if the database was updated; update the message code if needed
$database_updated = false;
if ($this->message['code'] === '200') {
if (!empty($this->message['code']) && $this->message['code'] === '200') {
$database_updated = true;
}
if (!$database_updated) {