Skip to content

Commit 1c1bf22

Browse files
authored
Merge pull request #1 from Findus23/patch-1
make more PHP 7.4 compatible
2 parents f16f698 + a51d574 commit 1c1bf22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lessc.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ protected function zipSetArgs($args, $orderedValues, $keywordValues) {
662662

663663
// check for a rest
664664
$last = end($args);
665-
if ($last[0] == "rest") {
665+
if (is_array($last) && isset($last[0]) && $last[0] == "rest") {
666666
$rest = array_slice($orderedValues, count($args) - 1);
667667
$this->set($last[1], $this->reduce(array("list", " ", $rest)));
668668
}

0 commit comments

Comments
 (0)