aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/template.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index d183ecb85a..3a15710a2c 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -432,9 +432,11 @@ class Template {
// Get a reference to the data block for this namespace.
$varref = $this->generate_block_data_ref($namespace, true);
// Prepend the necessary code to stick this in an echo line.
- $varref = '\' . ' . $varref;
+
// Append the variable reference.
- $varref .= '[\'' . $varname . '\'] . \'';
+ $varref .= '[\'' . $varname . '\']';
+
+ $varref = '\' . ( ( isset(' . $varref . ') ) ? ' . $varref . ' : \'\' ) . \'';
return $varref;