From cc5dad977cc7f1aeb53d0eb4e827cd4624163131 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 31 Aug 2019 02:17:06 +0200 Subject: [PATCH] Fix scrutinizer --- htdocs/core/class/lessc.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/core/class/lessc.class.php b/htdocs/core/class/lessc.class.php index 6a67c8cb2b5..f6a9208cadf 100644 --- a/htdocs/core/class/lessc.class.php +++ b/htdocs/core/class/lessc.class.php @@ -1033,6 +1033,7 @@ class Lessc { return $this->lib_e($items[0]); } $this->throwError("unrecognised input"); + return null; case "string": $arg[1] = ""; return $arg; @@ -1050,6 +1051,7 @@ class Lessc { $template = $this->compileValue($this->lib_e($string)); $i = 0; + $m = array(); if (preg_match_all('/%[dsa]/', $template, $m)) { foreach ($m[0] as $match) { $val = isset($values[$i]) ?