Skip to content

Commit

Permalink
deal with ampersand when parsing queries
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Oct 8, 2013
1 parent 11cac16 commit 8312857
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 8312857

Please sign in to comment.