Skip to content

Commit

Permalink
Fix install issues on php82
Browse files Browse the repository at this point in the history
  • Loading branch information
jack7anderson7 committed Jul 19, 2023
1 parent b90e3cd commit ab7788c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions install/performSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,9 +712,11 @@ function installStatus($msg, $cmd = null, $overwrite = false, $before = '[ok]<br
$_REQUEST['do_not_redirect'] = true;

// restore superglobals and vars
$GLOBALS = $varStack['GLOBALS'];
foreach ($varStack['GLOBALS'] ?? [] as $index => $item) {
$GLOBALS[$index] = $item;
}
foreach ($varStack['defined_vars'] as $__key => $__value) {
${$__key} = $__value;
$$__key = $__value;
}


Expand All @@ -728,7 +730,7 @@ function installStatus($msg, $cmd = null, $overwrite = false, $before = '[ok]<br
}


if (count($bottle) > 0) {
if (is_countable($bottle) && count($bottle) > 0) {
foreach ($bottle as $bottle_message) {
$bottleMsg .= "{$bottle_message}\n";
}
Expand Down

0 comments on commit ab7788c

Please sign in to comment.