aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/template.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index fc03298c6c..1af9720f43 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -204,6 +204,13 @@ class template
trigger_error("template->_tpl_load(): No file specified for handle $handle", E_USER_ERROR);
}
+ // Just compile if no user object is present (happens within the installer)
+ if (!$user)
+ {
+ $compile->_tpl_load_file($handle);
+ return false;
+ }
+
if ($user->theme['template_storedb'])
{
$sql = 'SELECT * FROM ' . STYLES_TPLDATA_TABLE . '