diff --git a/src/Common/Quoter.php b/src/Common/Quoter.php index 2ef6e29..64a5b0d 100644 --- a/src/Common/Quoter.php +++ b/src/Common/Quoter.php @@ -206,7 +206,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"; }