From 4e488d7f5a5148a4bca9f81667962125771f03aa Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 1 Apr 2022 14:38:18 +0300 Subject: [PATCH] fix PHP 8.0 error when deinstalling an app with single table (string instead of string[]) --- setup/inc/class.setup_process.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/inc/class.setup_process.inc.php b/setup/inc/class.setup_process.inc.php index 990c22fd0e..ec152877ac 100755 --- a/setup/inc/class.setup_process.inc.php +++ b/setup/inc/class.setup_process.inc.php @@ -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); } -} +} \ No newline at end of file