aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/template.class.php')
-rw-r--r--include/template.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/template.class.php b/include/template.class.php
index 14ef8653b..be9aeda97 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -199,7 +199,7 @@ class Template {
return false;
}
- if ((stripos(implode('/',array_keys($_GET)), $param) > 0 or $param == 'N/A')
+ if ((stripos(implode('',array_keys($_GET)), '/'.$param) !== false or $param == 'N/A')
and (preg_match('/'.preg_quote($tpl,'/').'$/', $this->get_template_dir()) or $tpl == 'N/A')
and (!isset($this->extents[$handle]) or $overwrite)
and file_exists($dir . $filename))