Work-around for superfluous brackets
authorAlexander Ebert <ebert@woltlab.com>
Thu, 27 Jun 2013 03:45:42 +0000 (05:45 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 27 Jun 2013 03:45:42 +0000 (05:45 +0200)
wcfsetup/install/files/lib/system/style/lessc.inc.php

index 219d217514db7245c97a7a9de588360dfc8c7a08..c33ce56ad43cec1a42a6e7f40737d7d1b810a445 100644 (file)
@@ -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;