From cba23a28c36273ed11e53bea5c66e6f7f33ed4ea Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 27 Jun 2013 05:45:42 +0200 Subject: [PATCH] Work-around for superfluous brackets --- wcfsetup/install/files/lib/system/style/lessc.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/style/lessc.inc.php b/wcfsetup/install/files/lib/system/style/lessc.inc.php index 219d217514..c33ce56ad4 100644 --- a/wcfsetup/install/files/lib/system/style/lessc.inc.php +++ b/wcfsetup/install/files/lib/system/style/lessc.inc.php @@ -2053,7 +2053,7 @@ class lessc_parser { $this->throwError(); // TODO report where the block was opened - if (!is_null($this->env->parent)) + if (!property_exists($this->env, 'parent') || !is_null($this->env->parent)) throw new exception('parse error: unclosed block'); return $this->env; -- 2.20.1