summaryrefslogtreecommitdiffstats
path: root/src/Components/JoinKeyword.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Components/JoinKeyword.php')
-rw-r--r--src/Components/JoinKeyword.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Components/JoinKeyword.php b/src/Components/JoinKeyword.php
index 237022a..b95912e 100644
--- a/src/Components/JoinKeyword.php
+++ b/src/Components/JoinKeyword.php
@@ -158,8 +158,8 @@ class JoinKeyword extends Component
{
$ret = array();
foreach ($component as $c) {
- $ret[] = (($c->type === 'JOIN') ? 'JOIN ' : ($c->type . ' JOIN ')) .
- Expression::build($c->expr) . ' ON ' . Condition::build($c->on);
+ $ret[] = (($c->type === 'JOIN') ? 'JOIN ' : ($c->type . ' JOIN '))
+ . $c->expr . ' ON ' . Condition::build($c->on);
}
return implode(' ', $ret);
}