Skip to content

Commit

Permalink
Merge pull request #207 from auraphp/bug-fix-206
Browse files Browse the repository at this point in the history
[BUG] Fix bad use of strripos
  • Loading branch information
harikt authored Apr 25, 2023
2 parents 3cadc8b + e693e16 commit 33a6283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Quoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ protected function replaceNamesAndAliasIn($val)
{
$quoted = $this->replaceNamesIn($val);
$pos = strripos($quoted, ' AS ');
if ($pos) {
if ($pos !== false) {
$alias = $this->replaceName(substr($quoted, $pos + 4));
$quoted = substr($quoted, 0, $pos) . " AS $alias";
}
Expand Down

0 comments on commit 33a6283

Please sign in to comment.