fix PHP 8.0 error when deinstalling an app with single table (string instead of string[])

This commit is contained in:
ralf 2022-04-01 14:38:18 +03:00
parent 2c73f15101
commit e5b82243fc

View File

@ -395,7 +395,7 @@ class setup_process
}
}
// drop them in reverse order, in case the have constrains
foreach(array_reverse($data['tables'] ?? []) as $table)
foreach(array_reverse((array)($data['tables'] ?? [])) as $table)
{
//echo $table;
if (in_array($table, $tables))
@ -844,4 +844,4 @@ class setup_process
}
return count($apps);
}
}
}