Skip to content

Commit

Permalink
Fixed php 5.3 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-deluna committed Jun 3, 2016
1 parent a6aeb71 commit f118e8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Translator/Mysql.php
Expand Up @@ -579,8 +579,9 @@ protected function translateJoins()
reset($subAttributes['ons']);
$subAttributes['ons'][key($subAttributes['ons'])][0] = '';

foreach($subAttributes['ons'] as list($type, $localKey, $operator, $referenceKey))
foreach($subAttributes['ons'] as $on)
{
list($type, $localKey, $operator, $referenceKey) = $on;
$joinConditions .= ' ' . $type . ' ' . $this->escape($localKey) . ' ' . $operator . ' ' . $this->escape($referenceKey);
}

Expand Down

0 comments on commit f118e8d

Please sign in to comment.