diff --git a/src/Quoter.php b/src/Quoter.php index d745098..b24e187 100644 --- a/src/Quoter.php +++ b/src/Quoter.php @@ -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"; }