Skip to content

Commit

Permalink
[bug-OpenMage#862] Deprecated each() call in Mage_Eav with PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rjocoleman authored and edannenberg committed Aug 17, 2020
1 parent 12d2889 commit 7c2a876
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,8 @@ public function joinTable($table, $bind, $fields = null, $cond = null, $joinType
{
$tableAlias = null;
if (is_array($table)) {
list($tableAlias, $tableName) = each($table);
$tableAlias = key($table);
$tableName = current($table);
} else {
$tableName = $table;
}
Expand Down

0 comments on commit 7c2a876

Please sign in to comment.