Skip to content

Commit

Permalink
FIX upgrade_base using deprecated {} array access
Browse files Browse the repository at this point in the history
PHP8 deprecated {} array access, need to use []
  • Loading branch information
ionparticle committed Nov 28, 2023
1 parent f007062 commit 7cd42b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/libs/upgrade_scripts/upgrade_base.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ protected function applyDelta($file)
if ($sl < 0) {
continue;
}
if ("-" == $line{0} && "-" == $line{1}) {
if ("-" == $line[0] && "-" == $line[1]) {
continue;
}

if (";" == $line{$sl}) {
if (";" == $line[$sl]) {
$done = true;
$line = substr($line, 0, $sl);
}
Expand Down

0 comments on commit 7cd42b2

Please sign in to comment.