Skip to content

Commit c26bc93

Browse files
committed
fixed bug when calling parse on empty string
1 parent 0a38136 commit c26bc93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lessc.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ protected function createChild($fname) {
16761676
}
16771677

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

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

0 commit comments

Comments
 (0)