Skip to content

Commit 5137d4b

Browse files
kestralytmotyl
authored andcommitted
Make upgrade script compatible with PHP7. Fixes error (#615)
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
1 parent c86cbd9 commit 5137d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Mage/Usa/sql/usa_setup/upgrade-1.6.0.1-1.6.0.2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
$oldConfigValues = $connection->fetchAll($select);
8585

8686
foreach ($oldConfigValues as $oldValue) {
87-
$newValue = '';
87+
$newValue = array();
8888
if (stripos($oldValue['path'], 'free_method') && isset($oldToNewMethodCodesMap[$oldValue['value']])) {
8989
$newValue = $oldToNewMethodCodesMap[$oldValue['value']];
9090
} else if (stripos($oldValue['path'], 'allowed_methods')) {

0 commit comments

Comments
 (0)