aboutsummaryrefslogtreecommitdiff
path: root/lib/less.php/Less.php
diff options
context:
space:
mode:
authorAndreas Hubel2020-05-01 17:02:56 +0200
committerAndreas Hubel2020-05-01 17:02:56 +0200
commitf44ec0d772c1eeff41d8b3cecebe29a293b06a8f (patch)
tree59741c0581ddeda60d110f2095ca9c19f74da6c5 /lib/less.php/Less.php
parent6641ddb4a2533048f7f576f35156c46ccbd1d946 (diff)
fix php 7.4 problem
Diffstat (limited to '')
-rw-r--r--lib/less.php/Less.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/less.php/Less.php b/lib/less.php/Less.php
index 44cdffc..a68b749 100644
--- a/lib/less.php/Less.php
+++ b/lib/less.php/Less.php
@@ -1762,7 +1762,7 @@ class Less_Parser{
$this->expectChar(']');
- return $this->NewObj3('Less_Tree_Attribute',array( $key, $op[0], $val));
+ return $this->NewObj3('Less_Tree_Attribute',array( $key, is_array($op) ? $op[0] : null, $val));
}
//