From: Alexander Ebert Date: Thu, 27 Jun 2013 03:45:42 +0000 (+0200) Subject: Work-around for superfluous brackets X-Git-Tag: 2.0.0_Beta_5~120^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cba23a28c36273ed11e53bea5c66e6f7f33ed4ea;p=GitHub%2FWoltLab%2FWCF.git Work-around for superfluous brackets --- 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;