summaryrefslogtreecommitdiff
path: root/net-mgmt/icingaweb2/files/patch-library_vendor_lessphp_lessc.inc.php
blob: 57ae780ca64d32e61b62e1362bb456cbc64a5a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- library/vendor/lessphp/lessc.inc.php.orig	2019-10-18 05:39:24 UTC
+++ library/vendor/lessphp/lessc.inc.php
@@ -662,7 +662,7 @@ class lessc {
 
 		// 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)));
 		}