From c29ac9842d2d602184e266bb02e76050cf27894d Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Thu, 30 Jun 2022 12:03:48 +0200 Subject: [PATCH] Call: Don't precompile arg values when it's not an array The CSS/LESS callable argument values may not always be an array, but also an object or whateever, in this case we don't need to precompile the values as they could never be a variable. --- library/Icinga/Less/Call.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/Icinga/Less/Call.php b/library/Icinga/Less/Call.php index 449ede622..0a78cb541 100644 --- a/library/Icinga/Less/Call.php +++ b/library/Icinga/Less/Call.php @@ -24,6 +24,10 @@ class Call extends Less_Tree_Call } foreach ($this->args as $arg) { + if (! is_array($arg->value)) { + continue; + } + $name = null; if ($arg->value[0] instanceof Less_Tree_Variable) { // This is the case when defining a variable with a callable LESS rules such as fade, fadeout..