Skip to content

Commit

Permalink
💤 better conditioning
Browse files Browse the repository at this point in the history
  • Loading branch information
tracend committed Mar 11, 2024
1 parent 377df6d commit fdc8b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/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) && $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 fdc8b3d

Please sign in to comment.