Set $initialized flag after initialization in EmailTemplateEngine
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 15 Aug 2016 15:30:23 +0000 (17:30 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 15 Aug 2016 15:30:42 +0000 (17:30 +0200)
wcfsetup/install/files/lib/system/template/EmailTemplateEngine.class.php

index 89b2695d12aea72a00be5b8e3773162d0dbca78c..9928df4ee13c9d9340bc799cbc63fc64ba4c85b4 100644 (file)
@@ -30,6 +30,7 @@ class EmailTemplateEngine extends TemplateEngine {
                        $statement->execute(['_wcf_email/']);
                        
                        parent::setTemplateGroupID($statement->fetchSingleColumn());
+                       $initialized = true;
                }
                
                return parent::getTemplateGroupID();