fix 2 PHP 8.x Fatal stalling upgrade of old instances/apps

This commit is contained in:
ralf 2022-10-24 11:19:16 +02:00
parent 9640bc3e55
commit e95943f812
2 changed files with 1 additions and 2 deletions

View File

@ -616,7 +616,7 @@ class setup
//echo '<br>' . $setup_info[$appname]['version']; //echo '<br>' . $setup_info[$appname]['version'];
if($setup_info[$appname]['tables']) if($setup_info[$appname]['tables'])
{ {
$tables = implode(',',$setup_info[$appname]['tables']); $tables = implode(',', (array)$setup_info[$appname]['tables']);
} }
$this->db->update($this->applications_table,array( $this->db->update($this->applications_table,array(
'app_enabled' => $setup_info[$appname]['enable'], 'app_enabled' => $setup_info[$appname]['enable'],

View File

@ -356,7 +356,6 @@ switch($GLOBALS['egw_info']['setup']['stage']['db'])
{ {
echo '<p align="center">'.lang('backup started, this might take a few minutes ...')."</p>\n".str_repeat(' ',4096); echo '<p align="center">'.lang('backup started, this might take a few minutes ...')."</p>\n".str_repeat(' ',4096);
$db_backup->backup($f); $db_backup->backup($f);
fclose($f);
echo '<p align="center">'.lang('backup finished')."</p>\n"; echo '<p align="center">'.lang('backup finished')."</p>\n";
} }
else // backup failed ==> dont start the upgrade else // backup failed ==> dont start the upgrade