diff options
-rw-r--r-- | src/Utils/Query.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Utils/Query.php b/src/Utils/Query.php index f928ab3..b43a35e 100644 --- a/src/Utils/Query.php +++ b/src/Utils/Query.php @@ -726,12 +726,12 @@ class Query $ret .= static::getClause($statement, $list, $ops[0][0], -1) . ' '; // Doing replacements. - foreach ($ops as $i => $iValue) { - $ret .= $ops[$i][1] . ' '; + foreach ($ops as $i => $clause) { + $ret .= $clause[1] . ' '; // Adding everything between this and next replacement. if ($i + 1 !== $count) { - $ret .= static::getClause($statement, $list, $ops[$i][0], $ops[$i + 1][0]) . ' '; + $ret .= static::getClause($statement, $list, $clause[0], $ops[$i + 1][0]) . ' '; } } |