diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index 6ab44455ac..3d9d4fec72 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -99,7 +99,6 @@ class template
 			return false;
 		}
 
-		$template_names = '';
 		foreach ($filename_array as $handle => $filename)
 		{
 			if (empty($filename))