mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
vendor/lessphp: Check for an array before accessing an offset
https://www.php.net/manual/en/migration74.incompatible.php#migration74.incompatible.core.non-array-access
This commit is contained in:
parent
369ffa758e
commit
9c94b9cde7
2
library/vendor/lessphp/lessc.inc.php
vendored
2
library/vendor/lessphp/lessc.inc.php
vendored
@ -662,7 +662,7 @@ class lessc {
|
|||||||
|
|
||||||
// check for a rest
|
// check for a rest
|
||||||
$last = end($args);
|
$last = end($args);
|
||||||
if ($last[0] == "rest") {
|
if (is_array($last) && $last[0] == "rest") {
|
||||||
$rest = array_slice($orderedValues, count($args) - 1);
|
$rest = array_slice($orderedValues, count($args) - 1);
|
||||||
$this->set($last[1], $this->reduce(array("list", " ", $rest)));
|
$this->set($last[1], $this->reduce(array("list", " ", $rest)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user