Skip to content

Commit

Permalink
Merge pull request #1 from Findus23/patch-1
Browse files Browse the repository at this point in the history
make more PHP 7.4 compatible
  • Loading branch information
tsteur authored Jun 18, 2020
2 parents f16f698 + a51d574 commit 1c1bf22
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 @@ -662,7 +662,7 @@ protected function zipSetArgs($args, $orderedValues, $keywordValues) {

// check for a rest
$last = end($args);
if ($last[0] == "rest") {
if (is_array($last) && isset($last[0]) && $last[0] == "rest") {
$rest = array_slice($orderedValues, count($args) - 1);
$this->set($last[1], $this->reduce(array("list", " ", $rest)));
}
Expand Down

0 comments on commit 1c1bf22

Please sign in to comment.