Skip to content

Commit

Permalink
Merge pull request #89 from phpcr/fix_ampersand_handling
Browse files Browse the repository at this point in the history
deal with ampersand when parsing queries
  • Loading branch information
lsmith77 committed Oct 8, 2013
2 parents af54476 + 8312857 commit 0e829ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PHPCR/Util/QOM/Sql2Scanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public function lookupNextToken($offset = 0)
*/
public function getPreviousDelimiter()
{
return $this->delimiters[$this->curpos - 1];

return isset($this->delimiters[$this->curpos - 1]) ? $this->delimiters[$this->curpos - 1] : ' ';
}

/**
Expand Down

0 comments on commit 0e829ce

Please sign in to comment.