Skip to content

Commit

Permalink
[impr-OpenMage#62] Add PHP 7 support
Browse files Browse the repository at this point in the history
Credit to Inchoo (https://github.com/Inchoo/Inchoo_PHP7) for the work.
This is just a core implementation of the PHP 7 support module.
  • Loading branch information
drobinson authored and edannenberg committed Jul 17, 2018
1 parent 602a7bc commit 9cc6dc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Core/Model/Resource/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function read($sessId)

$data = $this->_read->fetchOne($select, $bind);

return $data;
return (string)$data;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion app/code/core/Mage/Sales/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@
</subtotal>
<shipping>
<class>sales/quote_address_total_shipping</class>
<after>subtotal,freeshipping,tax_subtotal</after>
<after>subtotal,freeshipping,tax_subtotal,msrp</after>
<before>grand_total</before>
</shipping>
<grand_total>
Expand All @@ -1227,6 +1227,7 @@
</grand_total>
<msrp>
<class>sales/quote_address_total_msrp</class>
<before>grand_total</before>
</msrp>
</totals>
<nominal_totals>
Expand Down

0 comments on commit 9cc6dc6

Please sign in to comment.