Skip to content

Commit 0e829ce

Browse files
committed
Merge pull request #89 from phpcr/fix_ampersand_handling
deal with ampersand when parsing queries
2 parents af54476 + 8312857 commit 0e829ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PHPCR/Util/QOM/Sql2Scanner.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ public function lookupNextToken($offset = 0)
7575
*/
7676
public function getPreviousDelimiter()
7777
{
78-
return $this->delimiters[$this->curpos - 1];
78+
79+
return isset($this->delimiters[$this->curpos - 1]) ? $this->delimiters[$this->curpos - 1] : ' ';
7980
}
8081

8182
/**

0 commit comments

Comments
 (0)