Skip to content

Commit

Permalink
[bug-OpenMage#615] PHP7 compat issue in Mage/Usa upgrade script
Browse files Browse the repository at this point in the history
uncaught Error: [] operator not supported for strings in app/code/core/Mage/Usa/sql/usa_setup/upgrade-1.6.0.1-1.6.0.2.php:93
  • Loading branch information
kestraly authored and edannenberg committed Mar 7, 2019
1 parent 2998c09 commit 05856ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
$oldConfigValues = $connection->fetchAll($select);

foreach ($oldConfigValues as $oldValue) {
$newValue = '';
$newValue = array();
if (stripos($oldValue['path'], 'free_method') && isset($oldToNewMethodCodesMap[$oldValue['value']])) {
$newValue = $oldToNewMethodCodesMap[$oldValue['value']];
} else if (stripos($oldValue['path'], 'allowed_methods')) {
Expand Down

0 comments on commit 05856ab

Please sign in to comment.