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