Skip to content

Commit

Permalink
fixed bug when calling parse on empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed Jun 3, 2011
1 parent 0a38136 commit c26bc93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lessc.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,7 @@ protected function createChild($fname) {
}

protected function parseTree($str = null) {
$this->prepareParser($str ? $str : $this->buffer);
$this->prepareParser(is_null($str) ? $this->buffer : $str);
while (false !== $this->parseChunk());

if ($this->count != strlen($this->buffer))
Expand Down

0 comments on commit c26bc93

Please sign in to comment.