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 c648c3cab9
commit e8a9e4b74b
2 changed files with 1 additions and 2 deletions

View File

@ -616,7 +616,7 @@ class setup
//echo '<br>' . $setup_info[$appname]['version'];
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(
'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);
$db_backup->backup($f);
fclose($f);
echo '<p align="center">'.lang('backup finished')."</p>\n";
}
else // backup failed ==> dont start the upgrade